diff --git a/js/ext/angular/src/directive/ionicSideMenu.js b/js/ext/angular/src/directive/ionicSideMenu.js index fc18bef239f..507e42c9098 100644 --- a/js/ext/angular/src/directive/ionicSideMenu.js +++ b/js/ext/angular/src/directive/ionicSideMenu.js @@ -153,7 +153,7 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie replace: true, transclude: true, scope: true, - template: '
', + template: '', compile: function(element, attr, transclude) { angular.isUndefined(attr.isEnabled) && attr.$set('isEnabled', 'true'); angular.isUndefined(attr.width) && attr.$set('width', '275'); @@ -176,6 +176,10 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie $scope.$watch($attr.isEnabled, function(val) { sideMenu.setIsEnabled(!!val); }); + + transclude($scope, function(clone) { + $element.append(clone); + }); }; } }; diff --git a/js/ext/angular/test/sideMenu.html b/js/ext/angular/test/sideMenu.html index 1a2ce34ac47..8e9c0642f6a 100644 --- a/js/ext/angular/test/sideMenu.html +++ b/js/ext/angular/test/sideMenu.html @@ -23,11 +23,12 @@