Common change handler

Is there a possibility to listen to all @bindable changes in one statement, e.g.

export class Test
{
	@bindable
	prop1: string;
	@bindable
	prop2: string;
	@bindable
	prop3: string;
	
	// not working code
	anyValueChanged()
	{
		// should fire if prop1 / prop2 or prop3 changes
	}
}
1 Like

Yes, we have propertyChanged(...), you can have a read more here Difference between @observable and @bindable

1 Like

Thats exactly what I need! Thanks a lot!

1 Like