I would like to set a boolean property on an angular2 component.
Given the following (that is incorrect) ...
.dart
@Component
....
@Input()
bool hasColour = false;
.html
...
<span [class.blue-colour] = 'hasColour'></span>
...
<colour-component hasColour></colour-component>
... how can I fix the above to be able to use hasColour to bind a class?
Thanks