mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(controllers): assign to parent scope if possible
This commit is contained in:
@@ -119,7 +119,8 @@ angular.module('ionic.ui.sideMenu', ['ionic.service.gesture', 'ionic.service.vie
|
||||
|
||||
$scope.sideMenuContentTranslateX = 0;
|
||||
|
||||
$parse($attrs.controllerBind || '$ionicSideMenusController').assign($scope, this);
|
||||
$parse($attrs.controllerBind || '$ionicSideMenusController')
|
||||
.assign($scope.$parent || $scope, this);
|
||||
}],
|
||||
replace: true,
|
||||
transclude: true,
|
||||
|
||||
Reference in New Issue
Block a user