Commit e4391a51 by Emile TAVERNE

Compatibilité

parent a223f069
import {ChangeDetectorRef, Component} from '@angular/core';
import {MyIntersectionObserverEntry} from '../../directives';
@Component({
selector: 'aiut-in-viewport',
......@@ -8,7 +9,7 @@ export class InViewportComponent {
constructor(private changeDetectorRef: ChangeDetectorRef) {
}
onViewportChange(intersectionObserverEntry: IntersectionObserverEntry) {
onViewportChange(intersectionObserverEntry: MyIntersectionObserverEntry) {
if (intersectionObserverEntry.isIntersecting) {
this.changeDetectorRef.reattach();
} 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