primeng icon indicating copy to clipboard operation
primeng copied to clipboard

Error in Angular2 rc3

Open monoflash opened this issue 10 years ago • 3 comments

Error

platform-browser.umd.js:2311 Error: Name attribute must be set if ngModel is used within a form.
                      Example: <input [(ngModel)]="person.firstName" name="first">

The error appears on all components that use the input select checkbox textarea and etc ...

monoflash avatar Jul 01 '16 03:07 monoflash

I have similar problem when using dropdown [(ngModel)] binding causes ORIGINAL EXCEPTION: No value accessor for '' I think it is only in rc3.

dbrezoev avatar Jul 01 '16 08:07 dbrezoev

I had this problem earlier today when using Beta 9 of NGPrime. If where you are using the p-dialog you have the old @angular/forms declarations, this is going to happen. p-dialog uses the new Angular forms version 0.1.1 and when mixed with the old versions of Angular forms, causes this issue. Update your forms to use the new formGroup object and it will work.

garethlewis avatar Jul 01 '16 11:07 garethlewis

Not PrimeNG related, closing.

cagataycivici avatar Nov 13 '16 16:11 cagataycivici