Angular JS Interview Questions and Answers
Ques. Can you explain the concept of scope hierarchy? How many scopes can an application have?Ans.
Each Angular application has exactly one root scope, but may have several child scopes. The application can have multiple scopes, because child controllers and some directives create new child scopes. When new scopes are created, they are added as children of their parent scope. This creates a hierarchical structure similar to the DOM where they're attached.
Is it helpful? Yes No
Most helpful rated by users: