AngularJS Directives

AngularJS Filters and Elements

AngularJS Tutorials

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 >


Further Explanation:-


Value Description
expression An expression to evaluate.

Code Explanation

All Tutorials related to AngularJS Directives

All Sections related to AngularJS