Skip to content

Commit

Permalink
fix: Fire onChange callback to check current DOM nodes
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusbotella committed Jan 17, 2018
1 parent 73f0200 commit 2ab8168
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/src/ngx-lazy-load-images.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export class LazyLoadImagesDirective {
// Observe Directive DOM Node
observer.observe(rootElement, observerConfig);

// Fire onChange callback to check current DOM nodes
onChange();

return observer;
}

Expand Down

0 comments on commit 2ab8168

Please sign in to comment.