I have got an variable in component was declared as:
public filter: Filter = {};
In template I bind this object like as:
<input [ngModel]="filter.name" value=""/>
<input [ngModel]="filter.secondname" value=""/>
How to listen changes this variable(object) filter?
I mean something like this:
this.filter.subscribe().then(changes => { // Call method here })
PS:
I dont want to use event ngChange="" for each input elements