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

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -