How can I call a function of a controller in Angular from JQuery when using routing. This means there is no controller defined in the HTML! There are many answers out there for doing this when NOT using routing. For example:
angular.element(document.getElementById('yourControllerElementID')).scope().$apply();
But this won't work if you're using routing where the controller is defined in app.js instead of your HTML.