Error: Template parse errors: Can't bind to 'routerlink' since it isn't a known property of 'a'.
vanor89 opened this issue · comments
Trying to use the loader with Angular + webpack2, got it working but I cannot create anchor links as such:
a('[routerlink]'=` "['./']" , routerlinkactive='active')
| Index
a('[routerlink]'= "['./home']" , routerlinkactive='active')
| Home
Template parse errors:
↵Can't bind to 'routerlink' since it isn't a known property of 'a'.
("<nav><a [ERROR ->][routerlink]="['./']" routerlinkactive="active">Index</a><a [routerlink]="['./home']" routerlinkactiv"): AppComponent@0:8
↵Can't bind to 'routerlink' since it isn't a known property of 'a'.
("<nav><a [routerlink]="['./']" routerlinkactive="active">Index</a><a [ERROR ->][routerlink]="['./home']" routerlinkactive="active">Home</a></nav><main><router-outlet></router-outle"): AppComponent@0:68"
thats because angular2 is case sensitive when using attributes, it tried to find the input as it is defined in the component so it should be routerLink instead routerlink and routerLinkActive instead routerlinkactive. Thanks!