ng init examples
angularjs ng-init example
angularjs directive ng-init
The ng-init directive allows you to evaluate an expression in the current scope.
In the following example, the ng-init directive initializes employees variable which is then used in the ng-repeat directive to loop thru each employee. In a real world application you should use a controller instead of ng-init to initialize values on a scope.
[!DOCTYPE html]
[html xmlns=““]
[head]
[title][/title]
[scr