Critical reception
Shobana Aravindakshan wrote a review for Rediff.com. She wrote the songs "Unnalaya and "Gotta Gonna Bhaava" with "vibrating base" have "plenty of soul".
References
Category:1998 albums
Category:Malayalam-language albums
Category:Johnson & Johnson Records albumsQ:
AngularJS Router - Add to route history - Async call
I'm currently trying to add route history support to an AngularJS application. The call to my api is asynchronous, so I need to call it when the user navigates to that route and then store the data into a session variable. I've got the following code:
if (angular.isDefined(history.pushState)) {
var newState = {};
newState.url = data.Url;
newState.user = data.User;
newState.isLoggedIn = data.IsLoggedIn;
newState.userIsAdmin = data.UserIsAdmin;
$rootScope.Current.history.pushState(newState, newState.Url, newState.user);
$rootScope.$on('$stateChangeStart', function(event, toState, toParams, fromState, fromParams) {
if ($rootScope.Current.history.length === 1) {
$rootScope.Current.sessionStorage.Login = $rootScope.Current.login;
}
$rootScope.Current.history.pushState(newState, newState.Url, newState.user);
});
}
The problem with this code is that it will only store the first push of state when the user navigates to that route. I've tried adding the pushStates() method after the user has already been logged in but it breaks the authentication. I've also tried running $rootScope.$on() after the login call but it breaks the authentication again. I'm pretty sure that there's an easier way to do this, but if anyone has any advice that'd be great!
A:
Related links:
Comentários