angular-block-ui icon indicating copy to clipboard operation
angular-block-ui copied to clipboard

blockUI not work when use blockUI first load

Open gaojianzhuang opened this issue 8 years ago • 1 comments

angular.module('myApp').controller('MyController', function($scope, blockUI) { // A function called from user interface, which performs an async operation. $scope.onSave = function(item) {

// Block the user interface
blockUI.start();

// Perform the async operation    
item.$save(function() {

  // Unblock the user interface
  blockUI.stop();
});

}; });

I used this scripts in my project. It doesn't work. I debug the code, find the "blockCount" default value is 1. However, I debug the official demo, the "blockCount" default value is 0. I don't know why.

BTW, my project has multiple module, they all will reference the block UI module. Is it the reason?

gaojianzhuang avatar Oct 14 '16 18:10 gaojianzhuang

angular.module('myApp', ['blockUI'])

vyzvam avatar Mar 07 '17 17:03 vyzvam