Wednesday 15 July 2015

internet explorer - Progress bar working in all browser except IE (Angular + bootstrap) -


I am using mascara and bootstrap to show a progress bar. Here is html

  & lt; Div class = "progress progress-striped active" & gt; & Lt; Div class = "repeated-info" style = "width: {{score}}%" & gt; & Lt; / Div & gt; & Lt; / Div & gt;   

Score Coming from my controller, this code works in all browsers except IE.

Any help would be appreciated.

Just change to the following:

  & lt; Div class = "progress progress-strip active" & gt; & Lt; Div class = "repeated-info" ng-entry-style = "width: {{score}}%;" & Gt; & Lt; / Div & gt; & Lt; / Div & gt;   

When you want to use Angel interpolation in an HTML attribute like you need to use ng-attr - browser.

No comments:

Post a Comment