You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When using ngModel i get sometimes the error message:
ERROR Error: NG01352: If ngModel is used within a form tag, either the name attribute must be set or the form
control must be defined as 'standalone' in ngModelOptions.
Example 1: <input [(ngModel)]="person.firstName" name="first">
Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">
at missingNameException (forms.mjs:3748:12)
at NgModel._checkName (forms.mjs:4070:19)
at NgModel._checkForErrors (forms.mjs:4053:14)
at NgModel.ngOnChanges (forms.mjs:3980:14)
at NgModel.rememberChangeHistoryAndInvokeOnChangesHook (core.mjs:4101:14)
at callHookInternal (core.mjs:5136:14)
at callHook (core.mjs:5167:9)
at callHooks (core.mjs:5118:17)
at executeInitAndCheckHooks (core.mjs:5068:9)
at refreshView (core.mjs:12806:21)
In the error message is not written, on which part of the code (i.e. in which file and which line of code) the error occurs.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
The error message should display in which file and which line of code the error occurs.
Please provide the environment you discovered this bug in (run ng version)
Which @angular/* package(s) are the source of the bug?
Don't known / other
Is this a regression?
No
Description
When using ngModel i get sometimes the error message:
ERROR Error: NG01352: If ngModel is used within a form tag, either the name attribute must be set or the form
control must be defined as 'standalone' in ngModelOptions.
In the error message is not written, on which part of the code (i.e. in which file and which line of code) the error occurs.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: