mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
refactor(ionicBar): fix controller being assigned to parent scope
This commit is contained in:
2
js/ext/angular/src/directive/ionicBar.js
vendored
2
js/ext/angular/src/directive/ionicBar.js
vendored
@@ -105,7 +105,7 @@ function barDirective(isHeader) {
|
||||
alignTitle: $attr.alignTitle || 'center'
|
||||
});
|
||||
|
||||
$parse($attr.model || BAR_MODEL_DEFAULT).assign($scope.$parent || $scope, hb);
|
||||
$parse($attr.model || BAR_MODEL_DEFAULT).assign($scope, hb);
|
||||
}
|
||||
};
|
||||
}];
|
||||
|
||||
Reference in New Issue
Block a user