When passing $ stateParams via $ state.go, it becomes correct when I click the link directly, but get null after refreshing the page 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 condition looks like this:
.state('detailpage', { url: "/page/overview", templateUrl: "/page_details.html", controller: "PageDetailsController", params: { url: null, page: null }, })
Thanks in advance.
source share