Hook into AngularJS routes.