angular-block-ui
angular-block-ui copied to clipboard
blockUI not work when use blockUI first load
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?
angular.module('myApp', ['blockUI'])