I’m using the multi observer pretty much the one described on the blog
filter: any = {
pageIndex: 0,
pageSize: 25,
query: '',
orderColumn: 'name',
orderDirection: 'asc'
};
constructor(private multiObserver: MultiObserver){
this.multiObserver.observe(this.filter, Object.getOwnPropertyNames(this.filter), () => this.filterChanged(), []);
}
filterChanged(){
// Get propertyname here which triggered the change.
this.getApplicationList();
}
That’s all working fine, but I would really like to know which one of the properties is changed, since I have need to have different behavior when the pageIndex is changed then when all the other properties are changed. Is there a way to get the property name inside the filterChanged function? Hope that someone can help out.