Inheritance in angularJS
Ohhh you know this then its ok, Please read fast
Inheritance is a feature which will allow you to copy or inherited the properties and methods of parent class.
Lets comeback to super sonic Framework, i mean the AngularJS
Before you go ahead, to continue with this article you must be familiar with controller in AngularJS. So AngularJS will allow you to copy properties and methods from 1 controller to another controller.
Usually how we declare a simple controller in AngularJS
Usually how we declare a simple inherited controller in AngularJS
Then what is the advantage of this
Child controller can manipulate the properties of parent variable. So “parentVariableName” scope can be manipulated in “child’ controller.