angular.directive.ng:init

Work in Progress This page is currently being revised. It might be incomplete or contain inaccuracies.

Description

ng:init attribute allows the for initialization tasks to be executed before the template enters execution mode during bootstrap.

Dependencies

Usage

<ANY ng:init="expression">
   ...
</ANY>

Parameters

Example

<div ng:init="greeting='Hello'; person='World'"> {{greeting}} {{person}}! </div>