Skip to content
Related Articles

Related Articles

Save Article
Improve Article
Save Article
Like Article

How to make Progressbar using Angular UI Bootstrap ?

  • Last Updated : 06 Jun, 2021

In this article, we will see how to make Dropdown using Angular UI bootstrap. Angular UI Bootstrap is an Angular JS framework created by Angular UI developers for providing better UI which can be used easily.

Syntax:

<div uib-progressbar></div>

Download AngularUI from the link:

https://angular-ui.github.io/bootstrap

 



Approach: 

  • First, add Angular UI bootstrap scripts needed for your project.

<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular.js”></script>
<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-animate.js”></script>
<script src=”https://ajax.googleapis.com/ajax/libs/angularjs/1.6.1/angular-sanitize.js”></script>
<script src=”https://angular-ui.github.io/bootstrap/ui-bootstrap-tpls-2.5.0.js”></script>

  • Make progressbar with its UIBootStrap classes which will set the UI to look for the progressbar.
  • Now make different types of progressbar using different classes and run the code.

Example:

HTML




<!DOCTYPE html>
<html ng-app="gfg">
  <head>
  
    <!-- Adding CDN scripts required for our page -->
    <script src=
    </script>
    <script src=
    </script>
    <script src=
    </script>
    <script src=
    </script>
  
    <script>
      // Adding Modules
      angular.module('gfg', ['ngAnimate', 'ngSanitize', 'ui.bootstrap']);
      angular.module('gfg').controller('progressbar', function ($scope) {
      
     });
    </script>
    <link href=
          rel="stylesheet">
  </head>
  <body>
    <div ng-controller="progressbar">
  
      <!-- making a progressbar -->
      <div class="column">
        <div><uib-progressbar class="progress-striped active" 
                              value="60" 
                              type='primary'>progressbar 1
          </uib-progressbar></div>
        <br>
        <div><uib-progressbar class="progress-striped active" 
                              value="20" 
                              type="success">progressbar 2
          </uib-progressbar></div>
        <br>
        <div><uib-progressbar class="progress-striped active" 
                              max="200" 
                              value="140" 
                              type="danger"><i>progressbar 3</i>
          </uib-progressbar></div>
  
      </div>
    </div>
  </body>
</html>

Output:

Reference: https://angular-ui.github.io/bootstrap/#!#progressbar




My Personal Notes arrow_drop_up
Recommended Articles
Page :