0

I want to the div height increased by 20px step by step, why below code only works in Chrome but not work in IE?

<div ng-repeat="p in percentage">
   <div style="height: {{$index*20+5}}px"></div>
</div>
huan feng
  • 7,307
  • 2
  • 32
  • 56

1 Answers1

0

Use ng-style="height: {{$index*20+5}}px"

Change it to

<div ng-repeat="p in percentage"> <div ng-style="height: {{$index*20+5}}px"></div>

Refer to AngularJS expression not working within style attribute on IE8

Community
  • 1
  • 1
Lewis Hai
  • 1,114
  • 10
  • 22