I am new to angular2
I have a button in parent component, if
You can use a shared service to communicate with components added by the router.
You can also use the activate event of the Router outlet for the parent to know when a component was added by the router
Template
Component
onActivate(componentRef){
componentRef.works();
}
Child Comp
works(){
console.log("works");
}