Multiple Eventemitter emits synchronous function called in html

153 Views Asked by At
doSomething(){

this.open.emit() ;
this.close.emit() ;

}

As you may think of open and close is output decorator. I want first it open.emit() when completed it do close.emit()

I am calling doSomething on a (click) event

<button (click)="doSomething()">
</button>
0

There are 0 best solutions below