I have a state defined as such:
.state('dashboard.poor-calls', {
url: '/voice-quality/{callType}/{categoryTypeId}/{:categoryEntityId}/?{:tableView}',
template: '<poor-calls></poor-calls>',
reloadOnSearch: false
})
Notice that categoryEntityId
is optional.
Is there a way to specify a default value for categoryEntityId
if it's not provided in the state()
definition, or does the controller of my <poor-calls>
directive have to check for a missing categoryEntityId
and assume the default value?