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

Commit a24137e

Browse files
committed
Add a ng-intro-refresh-method attribute
Add a ng-intro-refresh-method attribute defining a function to call to manually refresh IntroJs object
1 parent 78c20b0 commit a24137e

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
@@ -22,6 +22,7 @@
2222
ngIntroExitMethod: "=?",
2323
ngIntroNextMethod: "=?",
2424
ngIntroPreviousMethod: "=?",
25+
ngIntroRefreshMethod: "=?",
2526
ngIntroOptions: '=',
2627
ngIntroOncomplete: '=',
2728
ngIntroOnexit: '=',
@@ -118,6 +119,10 @@
118119
}
119120
};
120121

122+
scope.ngIntroRefreshMethod = function () {
123+
intro.refresh();
124+
};
125+
121126
var autoStartWatch = scope.$watch('ngIntroAutostart', function () {
122127
if(scope.ngIntroAutostart){
123128
$timeout(function() {

0 commit comments

Comments
 (0)