L
L
Lehich782017-09-11 14:20:03
Angular
Lehich78, 2017-09-11 14:20:03

How to change url without reloading controller??

It is necessary that when opening a news post, the address bar containing the news ID changes, and disappears when the modal window is closed, I do it through:
$scope.to = function (curLoc) {
$location.search('news', curLoc);
};
But the controller is rebooting, how to avoid it??

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question