更新时间:2022-12-19 21:05:09
您可以在表达式中使用 {{}}
You could use {{}}
with expression
标记
ui-sref="{{expression ? '.childState' : '.'}}"
。
将创建自己的状态路由,因此在单击它时,它将不会重定向到任何地方。
.
will create own state route, so while click on it, it will redirect no where.
希望这对您有所帮助,谢谢。
Hope this could help you, Thanks.