Menu items look like
<a ui-sref="state1">Label</a> The menu is formed automatically, the states are substituted from the array. How to make so that for some (not all) menu items the state is fictitious, i.e. when clicking on a link, the transition would not occur. For example, a submenu would simply open, and the page of the site would not change. Options: void (0), not existing state, state with the property abstract: true, - cause an error. It is impossible to make a reverse transition to resolve, since the original state is already lost. (or not?)
Refinement to the comment Grundy: A suggestion to do so:
<a ui-sref="state" ng-if="state!==void(0)" >Label </a> <a ng-href="void(0)" ng-if="state===void(0)" >Label </a> It leads to a doubling of the code. Label in my case contains code that will have to be repeated twice. I would not want to. Also, I would not want to give up ui-sref. One could do this:
<a ng-href="path" >Label </a> Where
path=[path1, path2, void(0)] But I want to do on ui-sref.
Apparently, we must also clarify. Option:
<a ng-href="path" ng-repeat="path in [path1, path2, void(0)]">Label </a>
possible, but do not want. I want something like:
<a ui-sref="state" ng-repeat="state in [state1, state2, void(0)]">Label </a> But this angular gives an error, because $ staite cannot be void (0). So I would like to create a dummy state that would not translate anywhere, just like href = "void (0)"
path=[path1, path2, void(0)]do you form yourself? - Grundy.leads to the same route on which now - Grundy