我正在使用justgage-angular要显示我的仪表数据,我如何使用 angularjs 将 php 编码的 json 数据解析为我的仪表。
HTML
<just-gage id="test1" min=0 max=120 value=100 title="TPD"></just-gage>
我想解析编码的 JSON 数据,而不是具有静态数据的“值”。
最佳答案
将该值绑定(bind)到 $scope 变量:
在你的js中:
$scope.currentValue = 100;
HTML:
<just-gage id="test1" min=0 max=120 value="currentValue" title="TPD"></just-gage>
关于javascript - 将 justgage-Angular 连接到编码的 json 数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29279048/