Search code examples
angularjsblockui

Blank message for block UI?


I'm using Block-UI for Angular & I'm getting a blank message. Has anyone else seen this? I've set a message in the start(), message() functions & BlockUIConfig.message property, but I don't get a message. Block UI is working otherwise.

UPDATE - Code Sample

  blockUI.start("Getting data...");
    $http.get(url+"/rest/get/data").success(function(response)
    {
        $scope.grid.rowData = response.data;
        $scope.grid.api.onNewRows();
        blockUI.stop();

    }).error(function(response)
        {
            window.alert(response);
            blockUI.reset();
        }
    );      

UPDATE 2 - Getting this error on the console

Error: No parent block-ui service instance located. at blkUI.directive.scope (http://localhost:8080/mdp-js/assets/block-ui/angular-block-ui.js:163:13)


Solution

  • This link had a fix for this issue. Look for the response from yyanavichus on Sep 22, 2014. I made that change to angular-block-ui.js & block-ui works fine for me now.