I am working on a Chrome extension, I want to detect when the user has typed a URL. I know about:
chrome.tabs.onUpdated.addListener(eventLisenerObj.onUpdated
You can have a look at $locationChangeSuccess.
$locationChangeSuccess
You can get the path like this:
var loc = $location.path();
Then on change of loc you can attach your function.
loc