خرید بک لینک

Vote count: 0

I've got the below controller with two scope variables and only one passes through to my directive?

.controller('newsController', ['$scope', 'gasPrices',
                                  function($scope, gasPrices) { 

  gasPrices.success(function(data) {
    $scope.gasFeed = data.series[0];    
  });

  $scope.myData02 = [2.095,2.079,2.036,1.988,1.882,1.817,1.767,1.747];

}])
;

I've got a directive that accepts one scope but not the other?

This works

<line-chart chart-data="myData02"></line-chart>

This doesn't

<line-chart chart-data="gasFeed"></line-chart>

Do you know why?

asked 2 mins ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 20 فروردين 1395 ساعت: 8:25

صفحه بندی