Show progress circular during $http post?

后端 未结 7 1583
旧巷少年郎
旧巷少年郎 2021-02-08 15:56

What is the best way to use Angular Material\'s Progress circular component with a $http request?

I currently have the code like this below:

Progre

7条回答
  •  臣服心动
    2021-02-08 16:24

    If you want a version of md-progress-circular that also inhibits the screen and has a backdrop place the md-progress-circular inside an mdDialog like this:

         function showWait(){
              $mdDialog.show({
                controller: 'waitCtrl',
                template: '' +
                            '
    ' + '' + '
    ' + '
    ', parent: angular.element(document.body), clickOutsideToClose:false, fullscreen: false }) .then(function(answer) { }); }

    here is a plunker i created that shows how Plunker

提交回复
热议问题