diff --git a/bower.json b/bower.json index 5a001e0..ac90c8c 100644 --- a/bower.json +++ b/bower.json @@ -1,6 +1,6 @@ { - "name": "mendhak/angular-intro.js", - "version": "1.1.4", + "name": "angular-intro.js", + "version": "1.1.5", "main": "src/angular-intro.js", "description": "Angular directive to wrap intro.js", "license": "MIT", diff --git a/build/angular-intro.min.js b/build/angular-intro.min.js index 999b6bb..f5cad8d 100644 --- a/build/angular-intro.min.js +++ b/build/angular-intro.min.js @@ -1,2 +1,2 @@ -/*! angular-intro.js 2014-11-05 */ -var ngIntroDirective=angular.module("angular-intro",[]);ngIntroDirective.directive("ngIntroOptions",["$timeout",function(a){return{restrict:"A",scope:{ngIntroMethod:"=",ngIntroOptions:"=",ngIntroOncomplete:"=",ngIntroOnexit:"=",ngIntroOnchange:"=",ngIntroOnbeforechange:"=",ngIntroOnafterchange:"=",ngIntroAutostart:"&",ngIntroAutorefresh:"="},link:function(b){b.ngIntroMethod=function(c){var d;d="string"==typeof c?introJs(c):introJs(),d.setOptions(b.ngIntroOptions),b.ngIntroAutorefresh&&b.$watch(function(){d.refresh()}),b.ngIntroOncomplete&&d.oncomplete(function(){a(b.ngIntroOncomplete.bind(this,b))}),b.ngIntroOnexit&&d.onexit(function(){a(b.ngIntroOnexit.bind(this,b))}),b.ngIntroOnchange&&d.onchange(function(c){a(b.ngIntroOnchange.bind(this,c,b))}),b.ngIntroOnbeforechange&&d.onbeforechange(function(c){a(b.ngIntroOnbeforechange.bind(this,c,b))}),b.ngIntroOnafterchange&&d.onafterchange(function(c){a(b.ngIntroOnafterchange.bind(this,c,b))}),"number"==typeof c?d.goToStep(c).start():d.start()},b.ngIntroAutostart()&&a(function(){b.ngIntroMethod()})}}}]); \ No newline at end of file +/*! angular-intro.js 2014-12-10 */ +var ngIntroDirective=angular.module("angular-intro",[]);ngIntroDirective.directive("ngIntroOptions",["$timeout",function(a){return{restrict:"A",scope:{ngIntroMethod:"=",ngIntroExit:"=?",ngIntroNext:"=",ngIntroOptions:"=",ngIntroOncomplete:"=",ngIntroOnexit:"=",ngIntroOnchange:"=",ngIntroOnbeforechange:"=",ngIntroOnafterchange:"=",ngIntroAutostart:"&",ngIntroAutorefresh:"="},link:function(b){b.ngIntroExit=function(){b.internalIntroExit&&b.internalIntroExit()},b.ngIntroNext=function(){b.internalIntroNext&&b.internalIntroNext()},b.ngIntroMethod=function(c){var d;d="string"==typeof c?introJs(c):introJs(),d.setOptions(b.ngIntroOptions),b.ngIntroAutorefresh&&b.$watch(function(){d.refresh()}),b.ngIntroExit&&(b.internalIntroExit=function(){d.exit()}),b.ngIntroNext&&(b.internalIntroNext=function(){d.nextStep()}),b.ngIntroOncomplete&&d.oncomplete(function(){a(b.ngIntroOncomplete.bind(this,b))}),b.ngIntroOnexit&&d.onexit(function(){a(b.ngIntroOnexit.bind(this,b))}),b.ngIntroOnchange&&d.onchange(function(c){a(b.ngIntroOnchange.bind(this,c,b))}),b.ngIntroOnbeforechange&&d.onbeforechange(function(c){a(b.ngIntroOnbeforechange.bind(this,c,b))}),b.ngIntroOnafterchange&&d.onafterchange(function(c){a(b.ngIntroOnafterchange.bind(this,c,b))}),"number"==typeof c?d.goToStep(c).start():d.start()},b.ngIntroAutostart()&&a(function(){b.ngIntroMethod()})}}}]); \ No newline at end of file diff --git a/example/index.html b/example/index.html index 8ca2774..99e713f 100644 --- a/example/index.html +++ b/example/index.html @@ -21,7 +21,9 @@ ng-intro-oncomplete="CompletedEvent" ng-intro-onexit="ExitEvent" ng-intro-onchange="ChangeEvent" ng-intro-onbeforechange="BeforeChangeEvent" ng-intro-onafterchange="AfterChangeEvent" - ng-intro-autostart="ShouldAutoStart()"> + ng-intro-autostart="ShouldAutoStart()" + ng-intro-next="NextStep" + ng-intro-exit="StopIntro" >