API¶
alight.debug¶
Turn on a logging debug information
- alight.debug.scan - logging scan operations
- alight.debug.directive - logging binding directives
- alight.debug.parser - logging parsing expressions
- alight.debug.watch - logging function $watch
- alight.debug.watchText - logging function $watchText
alight.bind(scope, element, option)¶
Bind a change detector to the DOM element, alias alight.applyBindings
- scope - an instance of Scope (or ChangeDetector)
- element - DOM element
- option.skip_top = false - Skip binding the top DOM element
- option.skip_attr = [‘al-repeat’, ‘al-app’] - Skip attributes for a binding, for the top element
- option.attachDirective = {} - Attach a custom directive
var scope = alight.Scope();
var element = document.body;
alight.bind(scope, element);
alight.Scope()¶
Create a new scope
alight.ctrl¶
Dictionary of controllers, alias for alight.controllers
alight.filters¶
Dictionary of filters
alight.directives¶
Dictionary of directives, short alias alight.d
alight.text¶
Collection of text directives
alight.hook¶
Different hooks