1.

Is it possible to create nested controllers?

Answer»

YES, it is possible to create nested controllers in AngularJS.
The SAMPLE code SNIPPET can be as shown below:

&LT;div ng-controller="mainController"> <p>{{message}} {{name}}!</p> <div ng-controller="childController1"> <p>Welcome to our app, {{name}}!</p> <div ng-controller="subChildController2"> <p>{{message}} {{name}}! You are our esteemed GUEST {{name}}.</p> </div> </div></div>


Discussion

No Comment Found