UI Router dynamic <title> tag
I'm adding a title to every state in the ui-router like that: .state('projects', { url: '/', templateUrl: 'projects/projects.html', ncyBreadcrumb: { label: 'Projects' }, data : {title: 'Projects'} }) And then the title attribute takes that data: <title ng-bind="$state.current.data.title"></title> How can I take data from the state parameters and add it to the title in the above example? I tried the following with no luck: .state('project', { abstract: true, url: '/projects/:projId', resolve:{ projId: ['$stateParams', function($stateParams){ return $stateParams.projId; }] }, controller: