Attribute, class, and style bindings
Attribute binding
One-Two |
Three-Four |
Five | Six |
Class binding
toggle the "special" class on/off with a property:
The class binding is special.
binding to class.special overrides the class attribute:
This one is not so special.
Using the bind- syntax:
This class binding is special too.
Add a class:
Add another class
Overwrite all existing classes with a new class:
Reset all classes at once
Style binding