I am working with an angular project and I have a GET and POST $http request in my application. I used before angular loading bar on the top of the screen. But as per the new requirement I need to change the current loading bar with big circular loading bar with percentage inside and blur background.
I found Angular SVG round progress bar perfect for my problem. I have checked their website and Gitlab, but I did not found that how can I integrate with my submit form action? (Basically I submit a form to the server and I get response, but It takes too long time that's why I want this circular progress bar in between)
Any help would be appreciated...:)
UPDATE
My HTML looks something like this,
<form ng-submit="ctrl.submitSearch()">
<input type="text">
<input type="text">
<input type="checkbox">
<button> Start </button>
</form>
/* Result Table */
<table>
</table>
Example circular loading bar (This is how I want) http://crisbeto.github.io/angular-svg-round-progressbar/
EDIT
currently I have that progress bar element like this,
<!--Background element when loading is in progress -->
<div class="overlay" ng-show="loading"></div>
<!--Angular SVG circular loading bar -->
<div class="popup"
ng-show="loading"
round-progress
max="100"
current="current"
color="#64b8e3"
bgcolor="#008acf"
radius="100"
stroke="20"
semi="false"
rounded="true"
clockwise="true"
responsive="false"
duration="800"
animation="easeInOutQuart">
</div>
And here is my current CSS,
/* CSS for adding blury black background while loading is in progress */
.overlay {
position: fixed;
top: 0;
left: 0;
right: 0;
bottom: 0;
width: 100%;
height: 100%;
margin: 0 auto;
padding-left: 0;
padding-top: 0;
z-index: 998;
background-color: Black;
opacity: .5;
}
/* CSS for loading bar */
.popup {
position: fixed;
z-index: 999;
padding-left: 45%;
}
Everything is working perfect except the position of circular loading bar, which I want on the center of the page and fixed while scrolling.