Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

$ionicView events not firing

$
0
0

This worked for me.

It took me a while to get it to work. I tried reload:true and some state redirections but found this to be the neatest solution.

controller

    $scope.$on("$ionicView.enter", function () {
      $scope.guests.length = 0;
    });

router

  .state('menu.import', {
    url: '/import',
    views: {
      'side-menu22': {
        templateUrl: 'js/import/import-form/import-form.html',
        controller: 'importCtrl',
        controllerAs: 'importCtrl',
      }
    },
    ....
  })

Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>