@@ -2,44 +2,60 @@ angular.module('starter.controllers', [])
22
33. controller ( 'DashCtrl' , function ( $scope ) {
44
5- /* $scope.$on('$ionicView.loaded', function() {
6- console.log(' DashCtrl loaded', $scope, $scope.$id)
7- });
8-
9- $scope.$on('$ionicView.beforeEnter', function() {
10- // Anything you can think of
11- console.log(' DashCtrl BeforeEnter', $scope, $scope.$id)
12- });
13- $scope.$on('$ionicView.enter', function() {
14- // Anything you can think of
15- console.log(' DashCtrl enter', $scope, $scope.$id)
165
17- } );
18- $scope.$on('$ionicView.afterEnter ', function() {
19- console.log(' DashCtrl afterEnter ', $scope, $scope.$id)
20- });
6+ console . info ( 'DashCtrl' ) ;
7+ /* $scope.$on('$ionicView.loaded ', function() {
8+ console.log(' DashCtrl loaded ', $scope, $scope.$id)
9+ });
2110
22- $scope.$on('$ionicView.beforeLeave', function() {
23- console.log(' DashCtrl beforeLeave', $scope, $scope.$id)
11+ $scope.$on('$ionicView.beforeEnter', function() {
2412 // Anything you can think of
25- });
13+ console.log(' DashCtrl BeforeEnter', $scope, $scope.$id)
14+ });
15+ $scope.$on('$ionicView.enter', function() {
16+ // Anything you can think of
17+ console.log(' DashCtrl enter', $scope, $scope.$id)
2618
27- $scope.$on('$ionicView.leave', function() {
28- console.log(' DashCtrl Leave', $scope, $scope.$id)
29- });
19+ });
20+ $scope.$on('$ionicView.afterEnter', function() {
21+ console.log(' DashCtrl afterEnter', $scope, $scope.$id)
22+ });
3023
31- $scope.$on('$ionicView.afterLeave', function() {
32- console.log(' DashCtrl afterLeave', $scope, $scope.$id)
24+ $scope.$on('$ionicView.beforeLeave', function() {
25+ console.log(' DashCtrl beforeLeave', $scope, $scope.$id)
26+ // Anything you can think of
27+ });
3328
34- });
35- $scope.$on('$ionicView.unloaded', function() {
36- console.log(' DashCtrl unloaded', $scope, $scope.$id)
37- // Anything you can think of
38- });*/
29+ $scope.$on('$ionicView.leave', function() {
30+ console.log(' DashCtrl Leave', $scope, $scope.$id)
31+ });
3932
40- } )
33+ $scope.$on('$ionicView.afterLeave', function() {
34+ console.log(' DashCtrl afterLeave', $scope, $scope.$id)
35+
36+ });
37+ $scope.$on('$ionicView.unloaded', function() {
38+ console.log(' DashCtrl unloaded', $scope, $scope.$id)
39+ // Anything you can think of
40+ });*/
41+
42+ } )
43+ . controller ( 'ExtraCtrl' , function ( $scope , $ionicNavBarDelegate , $ionicHistory ) {
44+
45+
46+ $ionicNavBarDelegate . showBackButton ( true ) ;
47+
48+ $scope . back = function ( ) {
49+ debugger ;
50+ $ionicHistory . goBack ( ) ;
51+ }
52+
53+
54+ } )
4155
4256. controller ( 'ChatsCtrl' , function ( $scope , Chats ) {
57+
58+ console . info ( 'ChatsCtrl' ) ;
4359 /*$scope.$on('$ionicView.loaded', function() {
4460 console.log(' ChatsCtrl loaded', $scope, $scope.$id)
4561 });
0 commit comments