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?
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:
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?