Skip to content

Commit afcd6f7

Browse files
author
Grigorii Duca
committed
.
1 parent a7c1bc2 commit afcd6f7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/lazy-load.directive.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@ export class LazyLoadDirective implements OnInit, AfterViewInit {
1616

1717
constructor(private elementRef: ElementRef) { }
1818

19-
ngOnInit() { }
19+
ngOnInit() {
20+
// Int fix.
21+
this.threshold = parseInt(this.threshold + '');
22+
}
2023

2124
ngAfterViewInit() {
2225
this.initLazyLoad();

0 commit comments

Comments
 (0)