refactor(ionicBar): fix controller being assigned to parent scope

This commit is contained in:
Andy Joslin
2014-03-18 08:15:49 -06:00
parent 9258cde4fe
commit 7b410eaa61

View File

@@ -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);
}
};
}];