2

Nested Scopes in AngularJS

Is it possible create nested scopes that do not inherit properties from their parent scope

1

1 Answer 1

3

Yes. They are called isolate scopes. You can create it manually via

$scope.$new(true)

The new scope will have $parent property which resolves to parent scope, but it will not have prototypal inheritance from parent.

More about isolate scopes in official documentation

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.