abhikmitra / ng-joyride

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

request to make joyride less sensitive to bad config #26

Open steve-tapley opened 9 years ago

steve-tapley commented 9 years ago

Hi, A couple of times I've set up joyride with misconfigured config (eg a bad/mistyped element name). When the user happens to get to the step, joyride just stops working - the curtain is down, but the user has no way of recovering out of the joyride (unless they F5)

You can see this in the plunkr: http://plnkr.co/edit/Yn7cqL8IpR1VoL1ky65R

I could see this happening on a largish project where element ids change, and the tour is mistakenly not updated.

Can I make a suggestion that for misconfigured configs, that ng-joyride either end the tour, or skip the step?

Thanks, Steve

abhikmitra commented 9 years ago

Makes sense. While it might be difficult to make it resilient from all sorts of bad config errors.It might make sense to skip for elements that are not present.

tim-stefanski commented 9 years ago

+1 for this enhancement. Skipping a missing element rather than getting stuck would be a great feature.

learner972 commented 8 years ago

@abhikmitra Could you please tell me how to include this as I am getting error if in case ID is not found