Join the Stack Overflow Community
Stack Overflow is a community of 6.6 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

I am having url for

page1 : Application/Controller1/Action1

I redirect to page1 to :

page2 : Application/Controller1/Action1/#/SubAction1/40

Page 1 is in mvc. Page 2 is in angular.

If i redirect from page2 to :

page3(angular) : Application/Controller1/Action1/#/SubAction2/40

$scope.$on('$routeChangeStart', function (event, next, current)

this event get triggered.

But if redirect page2 to page1

$scope.$on('$routeChangeStart', function (event, next, current)

this event doesn't get fire.

I think it is considering only url after # is changed or not.

share|improve this question
    
Yes angular only look for stuff after # based on its config. Should read the documentation for the router. Also if page1 doesn't have angular it cannot do anything. But if you're learning I would suggest you learn angular 2 instead of 1. – GillesC Nov 23 '16 at 10:44

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.