Hi Naveen,

I agree with Eric that this should be done in the model. All data 
manipulation should be done through the model.
However, if you insist, it is not that hard to realize. This is a case 
where events come in.
your DoFoo, can $emit an event. 
Then parent can catch that event, and do a $broadcast. 
In the event parameters you can put an id, so the child directive that 
needs that id, can do its thing.
This will work as you want. However it is easy to create a maintenance 
nightmare this way.

Regards
Sander


-- 
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.

Reply via email to