AngularJS Tutorial 19- Nested Controllers

Publicado em: 06 Fevereiro 2017
no canal de: Nisha Singla
1,741
39

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.
When Nested level increases you need to use $parent property each time to refer the parent . Suppose you want to refer grandparent scope so you need to use $parent.$parent.title .

Visit complete playlist on angular js @    • AngularJS Tutorial 1  -  Introduction  

Visit my facebook page@

  / angularjs4beginners  


Nesta página do site você pode assistir ao vídeo on-line AngularJS Tutorial 19- Nested Controllers duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário Nisha Singla 06 Fevereiro 2017, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 1,741 vezes e gostou 39 espectadores. Boa visualização!