You might be looking for dynamic template name based on the state params
$stateProvider.state('contacts', {
templateUrl: function ($stateParams){
return '/partials/contacts.' + $stateParams.filterBy + '.html';
}
})
See the docs for more information
https://github.com/angular-ui/ui-router/wiki#templates