Update to Angular 16 #16

Merged
k.triantafyllou merged 66 commits from angular-16 into develop 2023-10-30 10:57:26 +01:00
1 changed files with 21 additions and 19 deletions
Showing only changes of commit 8d6522270c - Show all commits

View File

@ -60,7 +60,7 @@ export class SliderContainerComponent implements OnInit, OnDestroy, AfterContent
}
ngOnDestroy() {
if(this.observer) {
if(this.observer && typeof IntersectionObserver !== 'undefined') {
this.observer.disconnect();
}
}
@ -78,6 +78,7 @@ export class SliderContainerComponent implements OnInit, OnDestroy, AfterContent
}
setObserver() {
if(typeof IntersectionObserver !== 'undefined') {
let options = {
root: null,
rootMargin: '0px',
@ -97,6 +98,7 @@ export class SliderContainerComponent implements OnInit, OnDestroy, AfterContent
}, options);
this.observer.observe(this.element.nativeElement);
}
}
start(time: number) {
this.stages = [];