File tree 1 file changed +7
-0
lines changed
1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -128,6 +128,10 @@ <h1 class="title">New Task</h1>
128
128
angular . module ( 'tabsTest' , [ 'ionic' ] )
129
129
130
130
. controller ( 'RootCtrl' , function ( $scope , $timeout ) {
131
+
132
+ $scope . $on ( 'tab.shown' , function ( ) { console . error ( 'tab.shown Root this should not happen' ) ; } ) ;
133
+ $scope . $on ( 'tab.hidden' , function ( ) { console . error ( 'tab.hidden Root this should not happen' ) ; } ) ;
134
+
131
135
$scope . controllerChanged = function ( event ) {
132
136
console . log ( 'Controller changed' , event ) ;
133
137
@@ -165,6 +169,9 @@ <h1 class="title">New Task</h1>
165
169
$scope . settingsModal = modal ;
166
170
} ) ;
167
171
172
+ $scope . $on ( 'tab.shown' , function ( ) { console . log ( 'tab.shown Home' ) ; } ) ;
173
+ $scope . $on ( 'tab.hidden' , function ( ) { console . log ( 'tab.hidden Home' ) ; } ) ;
174
+
168
175
var removeItem = function ( item , button ) {
169
176
$ionicActionSheet . show ( {
170
177
buttons : [ ] ,
You can’t perform that action at this time.
0 commit comments