Vscode-ng-language-service: Template reference to ngModel produces error.

Created on 4 Jan 2017  路  4Comments  路  Source: angular/vscode-ng-language-service

Given the template

<label for="name">Name</label>
<input type="text" class="form-control" id="name"
       required
       [(ngModel)]="model.name" name="name"
       #name="ngModel" >
<div [hidden]="name.valid || name.pristine"
     class="alert alert-danger">Name is required</div>

The ng language service will draw red squiggles under name.valid and name.pristine with the error

[Angular] Identifier 'valid' is not defined. 'NgModel' does not contain such a member

bug tracking in angular

Most helpful comment

I have the exact same problem in 0.1.3

All 4 comments

Fixed in 0.1.1

I have the exact same problem in 0.1.3

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

_This action has been performed automatically by a bot._

Was this page helpful?
0 / 5 - 0 ratings