Saturday, June 9, 2018

Update view data based on model change in ionic 2 | ionic 3 in ionic 2 | ionic 3 | ionic 4

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. 

No comments:

Post a Comment