Use AngularJS $rootScope within a directive to detect route change errors and display it to the user.