i have error
Error in ./UserProfileComponent class UserProfileComponent – inline template:336:70 caused by: 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.
my code:
<form id=”formPass” action=”./” >
<div class=”form-group field-newpasswordform-password required”>
<jqxPasswordInput #password id=”password” [(ngModel)]=”newPassword” [width]=”300″ [name]=’newPass’ [height]=”25″ >
</jqxPasswordInput>
</div>
<button (click)=”sendNewPass()” class=”btn btn-default btn-large”>send</button>
</form>`
What am I doing wrong?