Monday, 19 August 2013

Event not call when user click browser back button

Event not call when user click browser back button

I have 2 views in angular using ng-view
Let say the first view with firstCtrl and second view with secondCtrl.
Then i have this event in both controller. Which is angularFire
authentication event.
$scope.$on("angularFireAuth:login", function(evt, user) {
console.log(user);
})
The views are navigate using $location.path()
My problem is, when user switch between this 2 views using either browser
back button or buttons I provided in view. The event will not call.

No comments:

Post a Comment