如何reload
在ui-sref
标记中指定选项?我看到的所有示例都直接使用javascript函数。
<a ui-sref="app.editPost({new:true}, {reload:true})">new post</a>
似乎不起作用。我是否必须创建一个范围控制器函数来包装该reload
选项?
我也在下面尝试了一些答案,但它似乎不适用于Ionic框架。链接到以下代码笔示例:
使用ui-sref-opts
。干得好:
<a ui-sref="app.editPost({new:true})"
ui-sref-opts="{reload: true, notify: true}">new post</a>
https://ui-router.github.io/ng1/docs/0.3.1/index.html#/api/ui.router.state.directive:ui-sref
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句