mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-06 22:29:44 +08:00
40 lines
898 B
JavaScript
40 lines
898 B
JavaScript
angular.module('ionic.menu', [])
|
|
|
|
.controller('LeftRightMenuController', ['$scope', '$element',
|
|
function LeftRightMenuCtrl($scope, $element) {
|
|
var ctrl = ion.controllers.LeftRightMenuViewController;
|
|
}])
|
|
|
|
.directive('ionicLeftRightMenu', function() {
|
|
return {
|
|
restrict: 'EA',
|
|
scope: true,
|
|
transclude: true,
|
|
controller: 'LeftRightMenuController',
|
|
compile: function(elm, attrs, transclude) {
|
|
return function(scope, element, attrs, menuCtrl) {
|
|
console.log('Compile');
|
|
};
|
|
},
|
|
link: function(scope) {
|
|
console.log('link');
|
|
}
|
|
}
|
|
})
|
|
|
|
.directive('ionicMenu', function() {
|
|
return {
|
|
restrict: 'EA',
|
|
controller: '',
|
|
compile: function(elm, attrs, transclude) {
|
|
return function(scope, element, attrs, menuCtrl) {
|
|
console.log('Compile');
|
|
};
|
|
},
|
|
link: function(scope) {
|
|
console.log('link');
|
|
}
|
|
}
|
|
});
|
|
|