UI-Router is different than Angular\'s ngRoute. It supports everything the normal ngRoute can do as well as many extra fu
UI-Router
Angular
ngRoute
You won't have access to $stateProvider in run and I don't think you should be changing the state configuration after creating it (and you might have no way of doing it anyway), why not just add resolve on state creation?
$stateProvider
run