I don't have enough information to adequately answer your question, but my 
best guess is that you are new to angular?

Are you using routeProvider for your views?  If so the views reload the 
associated controller, so could not your call impress.init() be there?  

Can you create a plunker or similar to demonstrate?

On Tuesday, February 11, 2014 5:04:13 PM UTC-7, Zach Schneider wrote:
>
> 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