“ui-sref” does not refresh the “ui-view”(its controller does not rerun) when a link is clicked twice

后端 未结 4 586
伪装坚强ぢ
伪装坚强ぢ 2020-12-29 23:43

When a state is clicked at first, the div that owns the \"ui-view\" attribute is replaced with the \"template\" of that state. However, when I click the same state again, it

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-30 00:40

    just use below code

    $stateProvider.
      state('myPage', {
        url: '/',
        cache: false // add this line
    

提交回复
热议问题