test(tabs): add tab.shown catching to test page

Addresses #588
This commit is contained in:
Andy Joslin
2014-02-13 12:17:59 -05:00
parent 69fda4e526
commit 80ee6c2497

View File

@@ -128,6 +128,10 @@
angular.module('tabsTest', ['ionic'])
.controller('RootCtrl', function($scope, $timeout) {
$scope.$on('tab.shown', function() { console.error('tab.shown Root this should not happen'); });
$scope.$on('tab.hidden', function() { console.error('tab.hidden Root this should not happen'); });
$scope.controllerChanged = function(event) {
console.log('Controller changed', event);
@@ -165,6 +169,9 @@
$scope.settingsModal = modal;
});
$scope.$on('tab.shown', function() { console.log('tab.shown Home'); });
$scope.$on('tab.hidden', function() { console.log('tab.hidden Home'); });
var removeItem = function(item, button) {
$ionicActionSheet.show({
buttons: [],