Need help change title in stateProvider state with a string

Hi There, i’m new on Angular.

I’m trying to Change the title of something like this:

function routeConfig($stateProvider, dashboardProvider) {
$stateProvider
.state(‘sadi.serviceDetail’, {
url: ‘/service?{id:any}’,
templateUrl: ‘app/pages/sadi/service/serviceDetail.html’,
controller: ‘ServiceDetailCtrl’,
title: ‘Service - Detail’, <— i want to change this with a string
})

is that possible?

thanks a lot

That attribute is already a string, so changing it will have no effect so long as it remains a string. The text will likely be inserted between a couple of H1 or H2 tags.