angular ui router - AngularJS: How to change URL parameter without using reloadOnSearch and not to reload controller using ui route? -
angular ui router - AngularJS: How to change URL parameter without using reloadOnSearch and not to reload controller using ui route? -
i want alter url query parameter without reloading controller. , can't utilize reloadonsearch property, because not meet other requirements.
for example: path: /score?interval
i want alter interval value without using reloadonsearch , controller should not reload.
can done angularjs? and, if so, how?
thank in advance!!
take @ next plunker. uses angular's $location service alter url without reloading controller. can utilize method update url parameters also:
$location.path('/test/item/' + $scope.itemid); if want alter url parameters can shown in plunker. (preview in windowed mode see working) can utilize $location.search() shown below:
$location.search('id', testid); hope helps.
angularjs angular-ui-router
Comments
Post a Comment