I have created an angular page and module and it does exactly what I wanted it to do. However the page title is CiviCRM and I want to change that. How do I do that?
I have tried to set it in the javascript:
angular.module('myemma').config(function($routeProvider) {
$routeProvider.when('/my-emma-accounts', {
controller: 'MyemmaMyEmmaAccounts',
templateUrl: '~/myemma/MyEmmaAccounts.html',
title: 'MyEmma accounts',
// If you need to look up data when opening the page, list it out
// under "resolve".
resolve: {
accounts: function(crmApi) {
return crmApi('MyEmmaAccount', 'get', {});
}
}
});
});
However the code above does not seem to work.