abhikmitra / ng-joyride

Angular Joyride Directive for creating custom introductions to websites
126 stars 68 forks source link

Programatically end Joyride #13

Closed mairead closed 10 years ago

mairead commented 10 years ago

Should setting $scope.startJoyRide to false clear open panels from the screen?

I need a way to end the joyride mid run.

The jQuery plugin allows you to send .joyride('end') to finish programatically

I expected setting the start attribute to false to have the same effect but this does not seem to trigger the onFinish method, or remove popovers from the screen. Am I missing something? or does ng-joyride not have this functionality?

Thanks

abhikmitra commented 10 years ago

Good point.Will implement this

abhikmitra commented 10 years ago

The implementation I am thinking of, will make the joyride treat a sudden end equivalent to "skip" . That means, if the page changes in course of the joyride, it will remain in that way and not come back to the original page.