1.

Angular init Directive

Answer»

Angular init Directive
As from last 2 chapters we got that AngularJS directives are HTML attributes with an ng prefix. Now comes to ng-init directive it is used to initialies AngularJS APPLICATION variables. As per the given below images:-



AngularJS Init

We can also USE some alternative for ng-init as given in below image


AngularJS Data Init
We can use data-ng-, instead of ng-, if you want to MAKE your PAGE HTML VALID.



Discussion

No Comment Found