diff --git a/README.md b/README.md index 82f47e6..04e3fac 100755 --- a/README.md +++ b/README.md @@ -61,7 +61,7 @@ or this: ``` * `promise` - Required. The promise (or array of promises) that will cause the busy indicator to show. -* `message` - Optional. Defaults to 'Please Wait...'. The message to show in the indicator. This value may be updated while the promise is active. The indicator will reflect the updated values as they're changed. +* `message` - Optional. Defaults to 'Please Wait...'. The message to show in the indicator. This value may be updated while the promise is active. The indicator will reflect the updated values as they're changed. `false` to hide message. * `backdrop` - Optional. Boolean, default is true. If true a faded backdrop will be shown behind the progress indicator. * `templateUrl` - Optional. If provided, the given template will be shown in place of the default progress indicatory template. * `delay` - Optional. The amount of time to wait until showing the indicator. Defaults to 0. Specified in milliseconds. diff --git a/angular-busy.js b/angular-busy.js index 557435c..e8c5459 100755 --- a/angular-busy.js +++ b/angular-busy.js @@ -183,7 +183,7 @@ angular.module('cgBusy').directive('cgBusy',['$compile','$templateCache','cgBusy templateScope = scope.$new(); } - templateScope.$message = options.message; + templateScope.$message = options.message !== false ? options.message : ''; if (!angular.equals(tracker.promises,options.promise)) { tracker.reset({