I am new to angular2
I have a button in parent component, if
With child in router-outlet, you can use ContentChild to be able to call a method in the child. So...
import { ContentChild } from '@angular/core';
in your parent:
@ContentChild(ChildComponent)
private childComponent: ChildComponent;
and on your click event do:
this.childComponent.doSomething()
Also you need to add your child component in the providers array in parent:
@Component({
selector: 'parent',
...
providers: [ChildComponent]
})