javascript - Dynamic AngularJS data value not being used -
i have angularjs d3 dial uses data-actual attribute set dial values.
if hard code in values works fine. however, if use angular $scope variables doesn't seem pick values.
working code example:
<div class="widget-container" data-expected="0.90" data-actual="0.30" indicator-widget></div>
non working code:
<div class="widget-container" data-expected="0.90" data-actual="{{ dataremaining | number:2 }}" indicator-widget></div>
however, when @ source via firebug in both examples shows me below. both same.
working result:
data-actual="0.30" data-expected="0.90">
non working result:
data-actual="0.39" data-expected="0.90">
what missing?
Comments
Post a Comment