1

Why do I have to use

e in $parent.parentScopeFunc()

instead of

e in parentScopeFunc()

when

{{ parentScopeValue }}

works fine for displaying parent scope members in a template?

2
  • Can we see an example? Commented Nov 17, 2014 at 20:12
  • @RahilWazir Coming up with a generalized example isn't as simple as it seemed at first. In attempting to create one, I inadvertently created an example of this problem not occurring at plnkr.co/edit/oC86CKiMM18k5XUIInzo Commented Nov 17, 2014 at 20:59

1 Answer 1

3

You're either overriding that function in whichever directive it's failing in or the function is not initialized in the parent scope until after the child scope is created.

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.