I'm trying to output the name of a folder both as ncybreadcrumb label and as HTML page title, using a controller which populates a scope variable. See the code below:
state('messenger.folder', {
url: '/:folder',
ncyBreadcrumb: {label: '{{folderLabel}}' },
data: {pageTitle: '{{folderLabel}}'},
controller: function($scope,$stateParams) {
$scope.folderLabel = $stateParams.folder;
}
}).
The strange thing is: It works perfectly for ncybreadcrumb, but not for page title: page-title is always empty.
Does anyone have an idea why this is the case and how to fix it?