When i try to go to just opened link, $routeProvider
doestn't start the controller
again.
Example:
- in html code I have some links(dynamically), for example url1, url2, url3.
- when I click on url2,
$routeProvider
starts the controller. - after some time, If I click again on this link - controller doesn't get started (only works for different links)
How to force start the controller
, when clicked on just opened link?
Or run init code for all links on click(but after this go to target link)?