JavaScript bootstrap progress bar style for width is not working with angular js bound variable bootstrap progress style,bootstrap style progress bar,bootstrap 4 progress

Progress Bar width is not getting updated by the variable bound by angular scope in IE.

I want to have a progress bar length to be updated by a variable in angular scope, for that i have tried using the angular expression directly in the in-line style element and also tried with ng-style attribute.

Its working properly in Firefox and Chrome, while on IE its failing to set the width of the progress bar.

Inspect element of the "div" element in IE shows as below

Inline Style { width : {{value}}% }

My understanding here, is the expression is not getting evaluated in the style attribute in Internet Explorer.

You can find the complete test script in this fiddle

Just wondering have anyone faced the same issue, anytime when working with the combination of bootstrap with angular.

Answer:1

You should use ng-style

http://jsfiddle.net/un8B5/

html:

ng-style="myStyle"

js:

$scope.myStyle = {width: $scope.value + '%'};
Answer:2

I am trying to use blessed, a text UI lib for Node. I'd like to create windows dynamically (free them after use), but I could not find info in the docs about how to destroy them. I've tried to remove ...

I am trying to use blessed, a text UI lib for Node. I'd like to create windows dynamically (free them after use), but I could not find info in the docs about how to destroy them. I've tried to remove ...

If Google S2 favicon service can't find a favicon of a website, it returns a default image. I want to know that the favicon was not found so I can show some other default image (on my server), or ...

If Google S2 favicon service can't find a favicon of a website, it returns a default image. I want to know that the favicon was not found so I can show some other default image (on my server), or ...

I'm creating a site using Harp, and I was wondering if there is a way to use Jade blocks alongside the normal != yield way of working. Basically, for page specific scripts, I'd like to pass a block ...

I'm creating a site using Harp, and I was wondering if there is a way to use Jade blocks alongside the normal != yield way of working. Basically, for page specific scripts, I'd like to pass a block ...

I am listening to this delegate method on UIWebView: - (void)webViewDidFinishLoad:(UIWebView *)aWebView On which, I apply some javascript using [aWebView stringByEvaluatingJavaScriptFromString:...

I am listening to this delegate method on UIWebView: - (void)webViewDidFinishLoad:(UIWebView *)aWebView On which, I apply some javascript using [aWebView stringByEvaluatingJavaScriptFromString:...

  1. inject javascript iframe cross domain
  2. inject javascript iframe
  3. inject js iframe
  4. javascript inject iframe into page
  5. inject javascript into iframe
  6. inject javascript into iframe cross domain
  7. inject javascript inside iframe
  8. inject js into iframe
  9. inject js inside iframe
  10. inject javascript code in iframe
  11. inject javascript function into iframe
  12. inject javascript code into iframe
  13. javascript inject html iframe
  14. javascript inject script into iframe
  15. javascript inject css into iframe
  16. javascript iframe inject script
  17. javascript inject html into iframe