I am trying to redirect inside a ui-router resolve and wanted to know if there is a way to reroute in a router resolver. Currently this does not work as one would think.
You can use resolver promises from with the redirectTo configuration
redirectTo: function($transition$) { return $transition$.injector().getAsync('isNew').then(function(isNew) { return isNew ? 'estate.edit' : 'estate.view'; }); },