Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ui.bootstrap deforms the <progress> HTML tag

In my HTML file I have a <progress> tag and I also injected the ui.bootstrap dependency to my controller as follows:

var myApp = angular.module("myApp",["ui.bootstrap"]);

In this configuration, AngularJS converts the <progress></progress> into:

<div class="progress ng-isolate-scope" ng-transclude=""></div>

When I remove "ui.bootstrap" it works fine. You can play out with this sample JSFiddle.

When progress turned into <div class="progress ng-isolate-scope" ng-transclude=""></div> it disappears. I understand that there is a directive called progress in ui.bootstrap that makes this conversion.

So, how can I make this progress bar work? Or, how can I disable the progress directive of angular-ui without removing the dependency?

Thanks in advance.

like image 791
ankakusu Avatar asked Jul 22 '14 08:07

ankakusu


1 Answers

I just ran into this same issue. A simple workaround is to use ng-non-bindable which is a standard angualr directive. The drawback is you can't use any angular directives or bindings within the progress element.

<progress ng-non-bindable></progress>
like image 71
Robin Palm Avatar answered Nov 20 '22 15:11

Robin Palm