DaftMonk / angular-tour

AngularJS directive for giving an interactive tour of your website.
http://daftmonk.github.io/angular-tour/
MIT License
609 stars 137 forks source link

How can set defaults? #36

Open code-griffin opened 9 years ago

code-griffin commented 9 years ago

In my app , I wanna set defaults of tourConfig. I'm doing like this...

angular.module('myProject',[...]) .config(['tourConfig',function(tourConfig){ tourConfig.setDefaults({ offset: 5, backDrop:true }])

But i am getting error? Anything wrong?

dixon629 commented 8 years ago

tourConfig is a constant. Just inject to your config or controller like a service, and then change it like this: tourConfig.backDrop = true;