Answer the question
In order to leave comments, you need to log in
Angular2 How to hang an event on url change?
Hello!
I want to hang an event for changing the url, in the first angular it was done very simply $scope.$on('$locationChangeStart', () => {...})
, in the second I can’t find the information.
+ There is a problem with the router
@RouteConfig([
{
path: '/',
component: Home,
name: 'Index'
},
{
path: '/about/',
component: About,
name: 'About'
},
...
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question