I have an angular application that i'm trying to use impress.js inside of. 

I've been able to overcome the issue with url hash conflicts, the only 
issue I have is with initiating the impress.js. 

The impress page is a link at the top of the navigation. I want to be able 
to move from that page to another page and back without issue. However, the 
way impress.js works you can only run impress().init() one time, so once I 
click away from the impress page and navigate back to it impress.js stops 
working. 

I've solved this issue with the following code:

if(!angular.isDefined($rootScope.loadCount)){
$rootScope.loadCount = 0; 
}else{
$rootScope.loadCount++;
}
if($rootScope.loadCount == 1){
         $window.location.reload()
}

But I feel like there should be an easier way to do this. Is there a way to 
have visiting a page a second time re-render the view like you have not 
been to the page yet?

-- 
You received this message because you are subscribed to the Google Groups 
"AngularJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to