Is it possible to check state in the view and don't output the link for current (active) state?
Currently trying:
<a ng-if="!$state.includes('dashboard.common')" ui-sref="dashboard.common" >Dashboard</a>
<span ng-if="$state.includes('dashboard.common')">Dashboard</span>
Of course, I could decorate it with ui-sref-active, but I don't want to have link at all.
Any ideas?
ng-ifapproach?$state.includesdoesn't work$stateon the scope - i.e.$scope.$state = $state?ui-sref-activethat applies the equivalent ofng-if- ui.router doesn't have such directive built-in