We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5595f09 commit e5df025Copy full SHA for e5df025
src/angular-intro.js
@@ -12,6 +12,10 @@
12
13
var ngIntroDirective = angular.module('angular-intro', []);
14
15
+ function IntroJsNotAvailable () {
16
+ this.message = 'Intro.js is not available. Make sure it is properly loaded.';
17
+ this.name = 'IntroJsNotAvailable';
18
+ }
19
20
ngIntroDirective.directive('ngIntroOptions', ['$timeout', function ($timeout) {
21
@@ -40,6 +44,9 @@
40
44
41
45
scope.ngIntroMethod = function(step) {
42
46
47
+ if (typeof(introJs) !== 'function') {
48
+ throw new IntroJsNotAvailable();
49
43
50
51
navigationWatch = scope.$on('$locationChangeStart', function(){
52
intro.exit();
0 commit comments