I have a parent controller and some child controllers in my app. In some cases i need to redirect user to another route url, and call the function after redirect (in url controller).
<div ng-controller="parent">
<!-- ng-view below -->
<div ng-controller="url1"></div> <!-- #/url1 -->
<div ng-controller="url2"></div> <!-- #/url2 -->
</div>
when user still in #/url1 in a particular case i need to redirect to #/url2 and then call a function in url2 controller.