This is very easy to do, Please add below code in your TS file :
import { Component, NgZone} from ‘@angular/core’;
constructor(public zone: NgZone) {
this.zone.run(() => {
// yor code goes here
});
}
This will update variable data when model change.
import { Component, NgZone} from ‘@angular/core’;
constructor(public zone: NgZone) {
this.zone.run(() => {
// yor code goes here
});
}
This will update variable data when model change.
No comments:
Post a Comment