Skip to content

Commit

Permalink
Merge bb4bb48 into 881b4a8
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelNel committed Oct 7, 2018
2 parents 881b4a8 + bb4bb48 commit 4eb31b9
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/services/wow.service.ts
Expand Up @@ -43,13 +43,14 @@ export class NgwWowService {
}

init(config?: NgwWowConfig): void {
if (this.window) { // For Angular Universal suport
let conf = config || {};
// For Angular Universal support
if (this.window) {
let wowConfig = config || {};
// Set callback hook:
conf.callback = () => this.itemRevealedSource.next();
wowConfig.callback = () => this.itemRevealedSource.next();

// Initializes the library
new WOW(config).init();
new WOW(wowConfig).init();
}
}

Expand Down

0 comments on commit 4eb31b9

Please sign in to comment.