简体   繁体   English

与angular.js的仪表数组

[英]Array of Gauges with angular.js

I am using gauge.js( http://bernii.github.io/gauge.js/ ) on my angular.js and I am trying to create dynamic instans of gauges, with settings value throw ng-model, I have in my template: 我在angular.js上使用了gauge.js( http://bernii.github.io/gauge.js/ ),我正在尝试创建仪表的动态实例,设置值为throw-model,我在我的模板:

  <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>

but still how can I set values for my gauge with ng model? 但是我怎样才能用ng模型为我的仪表设置值?

thanks! 谢谢!

I found the best gauge for me and its wj-radial-gauge. 我找到了最好的仪表和它的wj-radial-gauge。 very easy to use. 非常好用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM