mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Progress on #37
This commit is contained in:
15
js/ext/angular/src/directive/ionicNav.js
vendored
15
js/ext/angular/src/directive/ionicNav.js
vendored
@ -1,3 +1,6 @@
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
angular.module('ionic.ui.nav', ['ionic.service'])
|
||||
|
||||
.controller('NavCtrl', ['$scope', '$element', '$compile', 'TemplateLoader', function($scope, $element, $compile, TemplateLoader) {
|
||||
@ -16,7 +19,7 @@ angular.module('ionic.ui.nav', ['ionic.service'])
|
||||
$element.append(cloned);
|
||||
});
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
ionic.controllers.NavController.call(this, {
|
||||
content: {
|
||||
@ -53,7 +56,7 @@ angular.module('ionic.ui.nav', ['ionic.service'])
|
||||
controller: 'NavCtrl',
|
||||
//templateUrl: 'ext/angular/tmpl/ionicTabBar.tmpl.html',
|
||||
template: '<div class="view" ng-transclude></div>',
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('navBar', function() {
|
||||
@ -70,9 +73,9 @@ angular.module('ionic.ui.nav', ['ionic.service'])
|
||||
scope.navController = navCtrl;
|
||||
scope.goBack = function() {
|
||||
navCtrl.pop();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
})
|
||||
|
||||
.directive('navContent', function() {
|
||||
@ -101,5 +104,7 @@ angular.module('ionic.ui.nav', ['ionic.service'])
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user