返回上级刷新

desc

返回上一级页面时候,要求页面刷新。

method

  • 通过url的param变化触发刷新
  • 通过cookielocalstorage的值变化来触发刷新
  • ionic$emit$on

当前页面:

$popup.alert('结算成功!', function () { $scope.$emit('todo:listChanged'); //发送事件,告诉刷新

```});

上级页面

$rootScope.$on('todo:listChanged', function() {

```})

results matching ""

    No results matching ""