Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AngularJS expression not working within style attribute on IE8

Using an expression like this on the style attribute works on Chrome but doesn't work on IE8

style="width:{{progress}}%" 

http://jsfiddle.net/5VDMD/12/ (to test it please type a number in the textbox)

Any workaround for this problem?

like image 789
Christian Quirós Avatar asked Dec 05 '12 05:12

Christian Quirós


1 Answers

Try

ng-style="{ width: progress + '%' }" 
like image 83
Aleksandr Sabov Avatar answered Sep 20 '22 18:09

Aleksandr Sabov