I am trying to set up a framework that following structure. Parent Container (It is a directive) - Child (Its a directive) - Child - Child .... so on
Parent contains collection of same "Child" directive. Each child directive can be identified by a unique id. Each instance of child directive performs unique actions. At some point one child has to communicate with other child to do signal it to do something in response to some action it has done. There is one clean options I can see for this communication. Use pub/sub model through a factory. Child can "emit" message to parent and then parent "broadcasts" message with unique id of child that has to take action. Is there some other better to handle this kind of scenario? No, I don't have plunker at the moment for this use case. I am just putting some initial design in place. Thanks -- 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.
