-
Notifications
You must be signed in to change notification settings - Fork 175
Call start tour method from within another component #88
Comments
I don't see why it isn't a service |
i agreed on that, i'll make the changes and i'll be careful about those currently using as directive. |
Thanks @millerscout!! Let me know when it's done! |
@simonemazzoni i've finished the service, i'm currently testing on my environment that uses both ways, the service and the directive. later i'll make the pull-request and update the documentation. but you'll be able to use on this branch: https://github.com/millerscout/angular-intro.js/tree/ngintroAsService |
@millerscout thanks! Thanks |
@mendhak when it's possible, may you update npm package for the last release? |
So sorry I missed this. It's pushed now. |
thanks :) @simonemazzoni there you go. |
Great! Many thanks ;) |
Let's close this, if you need something let us know :) |
Hello,
I'm trying to create a Tour component to handle tours on my project.
Since angular-intro.js is a directive, I wrapped it inside a component with its own controller plus a service. I made this because I need to fire the start tour method from another component, but since the angular-intro.js directive binds the start method to the $scope in which is placed, theres no way to fire the start tour from another component (since there's not an easy way to access a component scope).
Is there a way to accomplish my task?
Why there's no service exposed for this directive?
The text was updated successfully, but these errors were encountered: