mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-07 06:57:02 +08:00
Random angular stuff and testing things
This commit is contained in:
20
example/angular/menu.js
vendored
20
example/angular/menu.js
vendored
@ -3,25 +3,26 @@ angular.module('ionic.menu', [])
|
||||
.controller('LeftRightMenuController', ['$scope', '$element',
|
||||
function LeftRightMenuCtrl($scope, $element) {
|
||||
var ctrl = ion.controllers.LeftRightMenuViewController;
|
||||
|
||||
$scope.controllerInitData = {};
|
||||
|
||||
$scope.initIonicController = function() {
|
||||
$scope._ionicController = new ctrl($scope.controllerInitData);
|
||||
};
|
||||
}])
|
||||
|
||||
.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');
|
||||
link: function($scope, element, attributes) {
|
||||
$scope
|
||||
console.log('link', $scope);
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
/*
|
||||
.directive('ionicMenu', function() {
|
||||
return {
|
||||
restrict: 'EA',
|
||||
@ -37,3 +38,4 @@ function LeftRightMenuCtrl($scope, $element) {
|
||||
}
|
||||
});
|
||||
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user