When passing $stateParams through $state.go it is getting correctly when i click the link directly, but getting null after page refresh or open through another window.
I have the following function:
$scope.urlvalues = function(url,page) {
var result = {url:url, page:page};
$state.go("detailpage", result);
}
And my state looks like this:
.state('detailpage', {
url: "/page/overview",
templateUrl: "/page_details.html",
controller: "PageDetailsController",
params: {
url: null,
page: null
},
})
Thanks in advance.