Is there any way to change the popover template dynamically. Currently i am using popover page as provider and accessing it in different page. in my template i displaying list items using *ngFor. While i changing data for *ngFor, it still showing data which is assigned initially. the data in the variable changing but not in template.
Is there any way to solve this problem ?
Possible issue with angular zone⦠simply wrap your new data assignment in zone callback
import {Component, NgZone} from '@angular/core'
@Component()
class SomeClass {
myList: any[]
constructor(private zone:NgZone){}
loadList(){
this.someService.callService().then(
(data)=>{
this.zone.run(()=>{
this.myList = data
})
}
)
}
}