Random angular stuff and testing things

This commit is contained in:
Max Lynch
2013-09-04 17:00:29 -05:00
parent 7794ce1a7a
commit 4f7e87bfcc
14 changed files with 2265 additions and 63 deletions

View File

@ -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) {
}
});
*/