I'm not an AngularJS dev but I was handed a project.
Now I need to call the following method, every time a route changes. doesn't matter to which route, just any route.
window.Intercom("update");
Now I found the following piece of code.
function config($urlRouterProvider, $stateProvider, $translateProvider, $locationProvider, $httpProvider) {
So in that method I have access to the $urlRouterProvider, I read in the docs that here it's possible to check for matched routes, even with regex.
Now I'm wondering, is it possible to see any time the router changes url, Am I looking in the right direction?