From ddf1b45068b02851f0c157e6bbd0af58fa59fe6e Mon Sep 17 00:00:00 2001 From: ARC Date: Tue, 28 Apr 2015 17:11:32 -0400 Subject: converted views to cache=false, I don't think there are significant performance hits. Also added triggers to see which views get unloaded/destroyed on exit - perf. tuning --- www/js/EventsGraphsCtrl.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'www/js/EventsGraphsCtrl.js') diff --git a/www/js/EventsGraphsCtrl.js b/www/js/EventsGraphsCtrl.js index 8a082db5..8523a5c7 100644 --- a/www/js/EventsGraphsCtrl.js +++ b/www/js/EventsGraphsCtrl.js @@ -8,6 +8,23 @@ angular.module('zmApp.controllers').controller('zmApp.EventsGraphsCtrl', functio $ionicSideMenuDelegate.toggleLeft(); } + $scope.$on('$ionicView.loaded', function(){ + console.log("**VIEW ** Graph Ctrl Loaded"); + }); + + $scope.$on('$ionicView.enter', function(){ + console.log("**VIEW ** Graph Ctrl Entered"); + }); + + $scope.$on('$ionicView.leave', function(){ + console.log("**VIEW ** Graph Ctrl Left"); + }); + + $scope.$on('$ionicView.unloaded', function(){ + console.log("**VIEW ** Graph Ctrl Unloaded"); + }); + + $scope.navTitle = 'Tab Page'; $scope.leftButtons = [{ type: 'button-icon icon ion-navicon', -- cgit v1.2.3