Answers for "control must be defined as 'standalone' in ngModelOptions."

2

ngmodeloptions standalone

[ngModelOptions]="{standalone:true}"
Posted by: Guest on July-28-2020
0

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 2: <input [(ngModel)]="person.myfirstName" [ngModelOptions]="{standalone: true}">
Posted by: Guest on September-02-2020

Code answers related to "control must be defined as 'standalone' in ngModelOptions."

Browse Popular Code Answers by Language