Interviews2 answers
Explain the concept of scope hierarchy? How many scope can an application have?
2 Answers
The application can have multiple scopes.
Some directives create new child scopes.
Bhuvanesh MohankumarPosted May 19, 2016, 4:59 AM EDT
Each angular application consist of one root scope but may have several child scopes. As child controllers and some directives create new child scopes, application can have multiple scopes. When new scopes are formed or created they are added as a children of their parent scope. Similar to DOM, they also creates a hierarchical structure.
Nitin ChoudharyPosted Jan 20, 2015, 2:43 AM EST


