Commit e4391a51 by Emile TAVERNE

Compatibilité

parent a223f069
import {ChangeDetectorRef, Component} from '@angular/core'; import {ChangeDetectorRef, Component} from '@angular/core';
import {MyIntersectionObserverEntry} from '../../directives';
@Component({ @Component({
selector: 'aiut-in-viewport', selector: 'aiut-in-viewport',
...@@ -8,7 +9,7 @@ export class InViewportComponent { ...@@ -8,7 +9,7 @@ export class InViewportComponent {
constructor(private changeDetectorRef: ChangeDetectorRef) { constructor(private changeDetectorRef: ChangeDetectorRef) {
} }
onViewportChange(intersectionObserverEntry: IntersectionObserverEntry) { onViewportChange(intersectionObserverEntry: MyIntersectionObserverEntry) {
if (intersectionObserverEntry.isIntersecting) { if (intersectionObserverEntry.isIntersecting) {
this.changeDetectorRef.reattach(); this.changeDetectorRef.reattach();
} else { } else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment