-
Notifications
You must be signed in to change notification settings - Fork 269
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Directive fails on Angularjs v1.2.2 #8
Comments
I think a JSFiddle would help here. Could you try reproducing this issue on JSFiddle and post the link ? Thanks |
I created a plunk for this issue. You can view the same here. http://plnkr.co/edit/0b08un1Emxk6cZG4kCyj?p=preview |
The problem is with When you say
I've updated the plunker, it works fine now: http://plnkr.co/edit/3jqFwQnvLCSPNFp8epQL?p=preview Hope this helps. |
Thanks man...It works. Sillly me. |
Directive scope binding fails on AngularJS v1.2.2.
Scope.acData, scope.acChart and scope.acConfig are all undefined
Been reading about the failures and looks to be an async issue due to promise returned instead of actual data.
Html:-
Controller:-
function TestController($scope, $http) {
$scope.chart = {
series: ['Sales', 'Income', 'Expense'],
data: [{
x: "Jack",
y: [100, 210, 384],
tooltip: "this is tooltip"
},
{
x: "John",
y: [300, 289, 456]
},
{
x: "Stacy",
y: [351, 170, 255]
},
{
x: "Luke",
y: [54, 341, 879]
}]
};
$scope.config = {
labels: false,
title: "Savings",
legend: {
display: true,
position: 'right'
},
};
The text was updated successfully, but these errors were encountered: