I have this
<input [value]="SomeModel.ValueFunct()" readonly="readonly"/>
It works! the value displayed changes when the function return value change.
How can i detect if the value change?
UPDATE:
Using:
ngOnChanges(changes: SimpleChanges) : void{
or
(gModelChange)="function($event)"
or
(change)="function($event)"
with
[ngModel]="SomeModel.ValueFunct()"
doesn't work when the function change, only if user change the input (but in this case is readonly)
Plunk:
http://next.plnkr.co/edit/Rj3NjtcGXTo9upt9?open=lib%2Fapp.ts&deferRun=1&preview .
.
Same unsolved question: