angular_analyzer_plugin icon indicating copy to clipboard operation
angular_analyzer_plugin copied to clipboard

Better error for erroneous trackBy: expressions

Open MichaelRFairhurst opened this issue 9 years ago • 0 comments

In playground/outline_component.html I put in the line

<li *ngFor='let item of items; var x=index; trackBy: items' [hidden]='item != null'>

and I get the very confusing error of

WARNING: Attribute value expression (of type List<String>) is not assignable to component input (of type (num, dynamic) → dynamic) ([angular2_quickstart] lib/overview_component.html:1)

Could use some dedicated logic to clean this error up

MichaelRFairhurst avatar Nov 19 '16 00:11 MichaelRFairhurst