cplus
cplus

Reputation: 1115

angularjs progressbar value from scope

I have this progress bar value being loaded from scope

<progressbar value="{{(sales*1)*100/(stock*1) | number}}" class="progress-xs no-radius no-margin" type="danger"></progressbar>

why the progressbar value is not being processed? what is wrong here?

Upvotes: 0

Views: 480

Answers (1)

Sajeetharan
Sajeetharan

Reputation: 222582

Do not use expression {{}} while setting the value,

Try

  <div progressbar="value"  value="(value*1)*100/(stock*1) | number"></div>

DEMO

Upvotes: 1

Related Questions