The flow of data in an AngularJS application is mostly controlled through controllers. The ng-controller directive is used to define a controller. A JavaScript object with attributes/properties and functions is known as a controller.
The controller in AngularJS is a JavaScript function that uses the $scope object to keep track of the application's data and behaviour. Within a controller function, you can add/update data and attach behaviours to HTML elements by attaching attributes and methods to the $scope object.
The parent element's $scope is referenced via $scope.$parent. For example, div ng-controller="parentController"> if you have an element with a controller nested within another element with its own controller.
$parent (i.e. $scope. $parent) is an Angular scope variable that refers to a controller's parent scope. The parent of a controller at the root of an application is the root scope ($rootScope). Because child controllers have access to the parent scope, they can change it.
Learner's Ratings
4
Overall Rating
64%
16%
2%
11%
7%
Reviews
N
NAVNEET MAHESWARI
5
EASY TO LEARN
P
Prabhat Yadav
5
Amazing course content and easy to understand.
A
Aparna K
5
Excellent
R
Rambo Krish
5
sds
S
Shraddha Naik
5
Good
K
Kijima
5
Very good
L
LAXMAN GOVIND RATHOD
5
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
V.phanindra babu
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
P
Prakriti
4
The Advanced AngularJS Course was good and included all the topics to find a good job in my City.
V
Virender morya
5
Hello
Show More
Recommended Courses
The Complete JavaScript Course - Beginner to Advance
Share a personalized message with your friends.