Wednesday, March 15, 2017

[attr.colspan]="whatever"

Some inline HTML parameters must be bound with the leading attr. in this manner for one-way binding in Angular 2 templates. If it's legit, but not a DOM property, such as colspan, you have to use this workaround.

No comments:

Post a Comment