AngularJS Tutorial 19- Nested Controllers

preview_player
Показать описание
In this tutorial, we will learn about Nested Controllers or Nested Scope in angularJS

As of now we are familiar with scope and rootScope in AngularJS. But Controllers can also create nested scope in AngularJS. When you use any controller inside any other controller it will create a nested scope

In case of Nested Scope or Nested Controller , Inner controller act like a child scope and outer Controller act like a parent Scope. In this case child controller or scope have access of all the data of parent scope .

If you want to access parent data inside child controller you need to use $parent property
When you use nested scope you need to be very careful while referring your scope.

Visit my facebook page@

Рекомендации по теме
Комментарии
Автор

You made it even more easy to understand... very well explained...

angelina
Автор

i must tell you yours lectures are so help full

Sandhya_Bhadouria
Автор

Part 18 $rootscope video is missing from the playlist. Could you please add it. Thanks for the rest of the videos they are truly valuable.

MayurBagwe
Автор

Nice and clear explanation .... Thank you mam :)

letslearn
Автор

Thanks very much. It's very helpful and easy to understand :)

wallydelacruz
Автор

please ma'am can you tell, is this lecture of controller is same for angular 8 also?please

Sandhya_Bhadouria