Make the attributes of the current element conveniently available in a normalized manner. Also, allow setting those attributes using the normalized names, which facilitates communication between directives and also provides a nice API for setting attributes on the DOM.
Tasks Checklist
[ ] How an element’s attribute values are made available to directives using the Attributes objects.
[ ] That boolean attribute values are always true when present on an element, but only for the standard HTML boolean attributes.
[ ] That the same Attributes object is shared by all the directives of an element.
[ ] How attributes can be $set, and how the caller can decide whether to also change the DOM or only the corresponding JavaScript property.
[ ] What the attribute name denormalization rules are when $setting an attribute on the DOM.
[ ] How attribute changes can be observed, and how that only applies to attributes set using $set and not to attributes changed by other means.
[ ] That class directives also become attributes and may optionally have values attached to them.
[ ] That comment directives also become attributes and may optionally have values attached to them.
[ ] How the Attributes object provides some convenience methods for adding, removing, and updating the CSS classes of the element.
Description
Make the attributes of the current element conveniently available in a normalized manner. Also, allow setting those attributes using the normalized names, which facilitates communication between directives and also provides a nice API for setting attributes on the DOM.
Tasks Checklist
Attributes
objects.true
when present on an element, but only for the standard HTML boolean attributes.Attributes
object is shared by all the directives of an element.$set
, and how the caller can decide whether to also change the DOM or only the corresponding JavaScript property.$set
ting an attribute on the DOM.$set
and not to attributes changed by other means.Attributes
object provides some convenience methods for adding, removing, and updating the CSS classes of the element.All issues in milestone: 0.6.0 milestone
Assignes