ngroute - How to detect change in only query string parameters with AngularJS Route? -
i wanted work query string parameters along usual route parameters in angularjs application , have been following solution in post: how pass querystring in angular routes?
the solution seems work: change route first $location.path
, apply query string parameters $location.search
.
however, came across scenario route not need change query parameters need to.
for example:
moving from
'/books/programming?id=123'
to
'/books/mathematics?id=234'
works fine.
however,
moving from
'books/programming?id=123'
to
'books/programming?id=124'
not work.
it seems angularjs notified changes on regular route parameters , not changes in query string parameters if query string thing changes in url, application not respond navigation.
as verified angularjs 1.6.5, , according plunkr @jb-nizet, problem not occur anymore. question still remains missed earlier did not work.
marking resolved not occur anymore.
Comments
Post a Comment