【发布时间】:2015-10-17 14:02:16
【问题描述】:
我在编写一个使用 angularjs 更新 d3 面积图的简单指令时遇到问题。
这是模型:
app.controller('chartController', ['$scope' , 'chartService', function ($scope, chartService) {
$scope.data = chartService;
}]);
当我使用子图表选择范围时,我想在标签或输入中获取所选日期的值。
【问题讨论】:
-
更新
$scope.data的函数在哪里?
标签: javascript angularjs d3.js angularjs-directive angularjs-scope