adding useful comment to $state.defaultErrorHandler

This commit is contained in:
jaredevantabor 2016-12-06 09:13:19 -08:00
parent fe29f5e0c9
commit a9c1969aa0

View File

@ -386,8 +386,9 @@ var tower = angular.module('Tower', [
$rootScope.$stateParams = $stateParams;
$state.defaultErrorHandler(function() {
// Do not log transitionTo errors
// $log.debug("transitionTo error: " + error );
// Do not log transitionTo errors. This function,
// left empty, will prevent errors being displayed on the
// JS console that are caused by ui-router transitions.
});
I18NInit();