Parent component can easily listen to events emitted by their child 
components using event emitter in child and event binding in parent. My 
question is how do you specify event binding in parent when child is loaded 
using router outlet.
Normal scenerio:
<parent-component>
     <child-component (myClick)="xyz()">
     </child-component>
</parent-component>

My scenerio:
<parent-component>
     <router-outlet></router-outlet> ===> ??? WHERE TO SPECIFY 
(myClick)="xyz()"
</parent-component>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" 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 https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to