I'm using custom data to add a human readable name to my states, like this:
.state('data', {
parent: 'week',
url: '/data',
displayName: 'Data Overview',
I can then use it in the template like this:
<h1>Showing {{$state.current.displayName}}</h1>
Which is nice. But now I want to create a route with a parameter, and use that parameter in the displayName:
.state('upload', {
parent: 'week',
url: '/upload/:level',
displayName: 'Data Upload for ' + level,
...
But I can't figure out the correct syntax to use access the value of level
inside the displayName
.