AngularJS ng init Directive
AngularJS ng-init Directive
The ng-init directive is used to evaluate the given expression or set of expressions. We can add logic into the scope but it is unnecessary and it is recommended to do evaluations in the controller.
< element ng-init="expression" >< /element >
|expression||An expression to evaluate.|