I solved this same issue using NgZone. This is not a complete example, but shows that I am invoking the `setPage()` function in my Angular 8 component from the onComplete property in the timeline's .to() declaration. Without the ngZone.run() within the setPage() function, the view doesn't know that the value has changed. With ngZone, it works as intended.
enterAnimation( _ElRefSet ) {
let $nativeEls = this.generateArrayOfNativeElements( _ElRefSet );
let tl = new TimelineMax();
tl.to($nativeEls, {
scale:"1",
opacity: "1",
duration:.125,
stagger: .075,
onComplete: this.setPage,
callbackScope: this
}, "-=.125");
return tl;
}
setPage() {
this.ngZone.run( () => {
this.currentPage++;
});
}
Love you guys!