So, I had actually found a way to get it to work with the child scope (it was actually just a typo in the property name) but based on your response I redesigned it to use events. The controller in the directive now broadcasts an event and controller subscribes to that event and it all work well.
Thanks. On Wednesday, July 2, 2014 4:32:52 AM UTC-5, Sander Elias wrote: > > Hi Buddy, > > here is a quote from Vojta: > > You can't access child scopes from parents. > There are reasons for that (eg. easier memory management - we can > easily throw away a child scope, without leaking memory). > > > You need to approach your problem from another angle. In the scope > hierarchy you can only access the parent scope, not it's children. > If you really need something like this, you can always use events to fire > off something somewhere else in the chain. > > Regards > Sander Elias > -- You received this message because you are subscribed to the Google Groups "AngularJS" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
