Im referring to this URL: http://bazarak.af/#!/annonser/page=1& ...
.when("/annonser/:query",{ templateUrl: '/views/search.php', controller: "Search" })
I would like to get the value of the page and change it in both the URL and routeParams.
To get the value of the page I tried
var pageNumber = $routeParams.page;
and to install it, I tried:
$routeParams ==> {page:5}
None of this is happening. And the documentation doesn't really help me. How can i do this?
user1012032
source share