Directives¶
Events¶
Binding events to an element can be done using one of the following directives:
There is also a short variant for events:
Controls¶
- al-model - two-way binding to user input elements (Example). This directive is a proxy for al-checked, al-radio, al-value and al-select.
- al-checked, todo sample
- al-radio sample1 sample2
- al-value, todo sample
- al-select + al-option, example
Special directives¶
- al-app, init application with current element, examples
- al-ctrl
- al-cloak, hide current element until activate the application, examples
- al-class/al-css, todo sample, animated sample
- al-style examples
- al-show, sample with animation
- al-hide, sample with animation
- al-html
- al-if, sample with animation
- al-ifnot, sample with animation
- al-include, loads a html block from the server, sample with animation
- al-init
- al-repeat
- al-src
- al-stop, stops a bind process for the element and his children.
- al-text, example
- al-attr
Bind-once¶
- bo-if
- bo-ifnot
- bo-src
- bo-switch
- bo-switchDefault
- bo-switchWhen