I have a [boolean]
directive with an Output
event:
@Output() booleanChanged = new EventEmitter();
...
this.booleanChanged.emit(value);
And in my view:
<input type="checkbox" [boolean] (booleanChanged)="updateBoolean()"/>
I would like to subscribe to this event from the component's code and not in the view.
Is there a way to do so?