In this article, we will discuss how to create a progress bar using normal html and Angular js aince during the development of webpages, sometimes we need to show the progress indication for illustrating any process. So for this purpose, the progress bar is the best control. It can be dynamically created in Angular js.
For doing this, we first create a html file named index.html and write down the below code:
- <!DOCTYPE html>
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <title>Progress Bar</title>
- <link href="../../RefStyle/bootstrap.min.css" rel="stylesheet" />
- <script src="../../Scripts/angular.min.js"></script>
- <script src="IndexController.js"></script>
- </head>
- <body data-ng-app="TestApp" data-ng-controller="IndexController as model">
- <div class="row animated fadeInRight">
- <div class="col-lg-12">
- <div class="rowDiv">
- <h3>{{model.message}}</h3>
- </div>
- </div>
- <div class="col-lg-12">
- <div class="rowDiv">
- <input type="button" value="Start" class="btn-default" data-ng-click="model.fnStart();" />
- <input type="button" value="Restart" class="btn-default" data-ng-click="model.fnRestart();" />
- </div>
- </div>
- <<div class="col-lg-12">
- <div class="rowDiv">
- <div style="background-color:#808080;" ng-style="{'width':model.width}">{{model.progress}}%</div>
- </div>
- </div>
- </div>
- </body>
- </html>


Parathap RamPosted Sep 6, 2018, 4:29 AM
Hi Can I have a source