Mon*_*key 27 javascript angularjs angular-ui-router ionic-framework
如何reload在ui-sref标记中指定选项?我看到的所有示例都直接使用javascript函数.
<a ui-sref="app.editPost({new:true}, {reload:true})">new post</a>
Run Code Online (Sandbox Code Playgroud)
似乎没有用.我是否必须创建一个范围控制器函数来包装该reload选项?
我也在下面尝试了一些答案,它似乎不适用于Ionic框架.链接到下面的代码笔示例:
Sha*_*wal 67
干得好:
<a ui-sref="app.editPost({new:true})" ui-sref-opts="{reload: true, notify: true}">new post</a>
Run Code Online (Sandbox Code Playgroud)
http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.directive:ui-sref