angular-tour icon indicating copy to clipboard operation
angular-tour copied to clipboard

Close tour if already viewed

Open cmbirk opened this issue 11 years ago • 1 comments

In a parent controller, I'm able to set the cookie to remember what step I was previously on, but I'm trying to not show the tour if it's already been viewed. Currently, I'm setting the cookie step to -1 when the tour completes. I'm trying the following:

if($cookies.myTour < 0){
  closeTour();
}

But it's saying closeTour is undefined, which makes sense because it's in the child scope. Is there any way to stop the tour from firing?

cmbirk avatar Sep 03 '14 20:09 cmbirk

@DaftMonk do you know of any way to stop the tour from firing?

cmbirk avatar Sep 18 '14 19:09 cmbirk