带角度的仪表阵列

Array of Gauges with angular.js

本文关键字:仪表 阵列      更新时间:2024-02-18

我使用的是gauge.js(http://bernii.github.io/gauge.js/)在我的angular.js上,我正在尝试创建仪表的动态instans,设置值抛出ng模型,我的模板中有:

  <a ng-repeat="item in items" 
           href="#/{{item.queId}}"
           class="item item-thumbnail-left">
          <img ng-src="{{ item.entrancePhotoUrl }}">
          <h1>{{ item.name }}</h1><h5>{{item.waitTimeEstimationSec}}</h5>
          <h4>{{ item.streetAddress }}</h4>
          <canvas gaugejs options="gaugeOptions" value="12" max-value="15" animation-time="animationTime"></canvas>
        </a>
      </div>

但是,我如何用ng模型为我的仪表设置值?

谢谢!

我找到了最适合我的量规及其wj径向量规。非常易于使用。