Skip to content
This repository was archived by the owner on Jan 17, 2022. It is now read-only.

Commit 0862da0

Browse files
committed
intro will fire the exit() method on location change
1 parent 9c96c06 commit 0862da0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/angular-intro.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@
121121
}
122122
autoStartWatch();
123123
});
124+
125+
scope.$on('$locationChangeSuccess', function() {
126+
if (typeof intro !== 'undefined')
127+
intro.exit();
128+
});
124129
}
125130
};
126131
}]);

0 commit comments

Comments
 (0)