ngInit
(directive in module ng
)
The ngInit
directive specifies initialization tasks to be executed
before the template enters execution mode during bootstrap.
<ANY ng-init="{expression}"> ... </ANY>as class
<ANY class="ng-init: {expression};"> ... </ANY>
ngInit – {expression} –
Expression to eval.