What is wrong with my Angular code? I am getting:
Cannot read property \'remove\' of undefined at BrowserDomAdapter.removeClass ...
[ngClass]=... instead of *ngClass.
* is only for the shorthand syntax for structural directives where you can for example use
{{item}}
instead of the longer equivalent version
{{item}}
See also https://angular.io/docs/ts/latest/api/common/index/NgClass-directive.html
... ... ... ... ...
See also https://angular.io/docs/ts/latest/guide/template-syntax.html
The class binding is specialThis one is not so special
Bad curly