angularjs数据ui sref重新加载不工作?
我正在使用angular form builder和UI路由器。如何设置重新加载选项angularjs数据ui sref重新加载不工作?,angularjs,angular-ui-router,ui-sref,Angularjs,Angular Ui Router,Ui Sref,我正在使用angular form builder和UI路由器。如何设置重新加载选项 <a data-ui-sref="app.fbforms.newfbform" data-ui-sref-opts="{cache: false,reload:true}">NewForm</a> NewForm 不工作重新加载选项。。页面未正确加载 有。上面定义的链接按原样工作。这个问题肯定在别处 因此,为了证明这一点,我创建了以下状态: .state('app', {
<a data-ui-sref="app.fbforms.newfbform"
data-ui-sref-opts="{cache: false,reload:true}">NewForm</a>
NewForm
不工作重新加载选项。。页面未正确加载
有。上面定义的链接按原样工作。这个问题肯定在别处
因此,为了证明这一点,我创建了以下状态:
.state('app', {
url: '/app',
template: '<div ui-view></div>',
})
.state('app.fbforms', {
url: '/fbforms',
template: '<div ui-view></div>',
})
.state('app.fbforms.newfbform', {
url: "/newfbform",
templateUrl: 'tpl.html',
controller: 'newfbformCtrl',
})
这通电话按预期工作:
<a data-ui-sref="app.fbforms.newfbform"
data-ui-sref-opts="{cache: false,reload:true}">
你能帮我吗@拉迪米肯定想帮你。您期望的链接是正确的。我用完整的示例创建了一个plunker。请检查一下。这可以帮助您了解我的设置,并将其与您的设置进行比较。关键是——概念是正确的;)如果这没用的话-sugestion请把我的plunker换成破碎状态。我很乐意帮助修理它。。好啊有道理?
<a data-ui-sref="app.fbforms.newfbform"
data-ui-sref-opts="{cache: false,reload:true}">
<div>
changes on reload: {{now}}
</div>