我已經實現了兩個角NVD3應用程序在我的HTML頁面上查看2個圖形。我讀過我可以通過使用ng-modules而不是ng-app來實現它,但不知何故它不起作用。你可以幫幫我嗎?多角JS應用程序
<div ng-modules="temperatureChart" ng-controller="temperatureCtrl">
<nvd3 options="options" data="data" class="with-3d-shadow with-transitions"></nvd3>
<br><a href="http://krispo.github.io/angular-nvd3/" target="_blank" style="float: right;">See more</a>
</div>
<div ng-modules="heatcounterChart" ng-controller="heatingCtrl">
<nvd3 options="options" data="data" class="with-3d-shadow with-transitions"></nvd3>
<br><a href="http://krispo.github.io/angular-nvd3/" target="_blank" style="float: right;">See more</a>
</div>
這就是我的嘗試,但它不工作。
什麼是'NG-modules'? – zeroflagL
「我讀過我可以通過使用ng-modules而不是ng-app來實現它們」。 **你在哪裏讀過這些?這似乎並不是什麼常識。 – Claies