How can I call function from directive after component's rendering?
I have component:
export class Component {
ngAfterContentInit() {
// How can i call functionFromDirective()?
}
}
And I want call this function:
export class Directive {
functionFromDirective() {
//something hapenns
}
How can i do this?