angular encountered $ state.go ( 'url') jump page does not refresh problem

Copyright: duck https://blog.csdn.net/weixin_43462746/article/details/83755312 have to refuel every day

1.$state.go("url",{},{reload:true});

2. Set the route controller (configuration attribute cache: true / false,, this default is true, which is configured to false, this time, in this state there would be no cache, each time it is in this state can be realized. refresh the page, it is equivalent to achieve a forced refresh.)

.state('myBill', {

url: '/myBill',

// cache: false,

templateUrl:'areas/MyBillList/myBill.html',

controller: 'myBillCtrl',

cache: false,

resolve: loadSequence ( 'myBillCtrl')

});

 

I was solved, Kee sum.

Guess you like

Origin blog.csdn.net/weixin_43462746/article/details/83755312