When trying to pass one parameter using `$stete.go`, I encountered an issue.
ROUTER
$stateProvider.state('login.signin', {
url: '/signin',
params: {
login_event: ''
},
templateUrl: "assets/views/login_login.html",
title: 'Login',
resolve: loadSequence('moment', 'userLoginCtrl')
});
CALLING
$state.go('login.signin', { login_event: "session_expired"});
TEST
console.log('toParams: ');
console.log(toParams);
console.log('fromParams: ');
console.log(fromParams);
console.log('$stateParams: ');
console.log($stateParams);
console.log('$state.params: ');
console.log($state.params);
Even after passing a value in the call, the value received in "toParams" is always the default.
I have made multiple attempts to retrieve a different value, but "toParams" consistently holds the default value.
Appreciate any assistance. Thank you.