hideLoadingIndicator
Hides the app-wide loading indicator overlay. It works by reference counting.
Parameters
None
Returns
None (void)
Description
Decrements _indicatorRefCount by 1 and hides the overlay only when the counter reaches 0. If you called $app.showLoadingIndicator N times, the indicator disappears only after N calls to hideLoadingIndicator.
$app vs $form detailed comparison
| Item | $app.hideLoadingIndicator | $form.hideLoadingIndicator |
|---|---|---|
| Hide scope | The whole app (root overlay) | Only that Form's area |
| Reference counting | ✅ Yes — hides only when refCount is 0 | ❌ No — hides immediately |
| Nested: 2 shows, then 1 hide | Counter drops by 1; still visible | Disappears immediately |
Example
// Basic usage
$app.showLoadingIndicator(0);
$http.get("/api/data", function(res) {
$app.hideLoadingIndicator(); // refCount 0 → hidden
$log.i("완료:", res.data);
});
// Nested calls — 2 shows require 2 hides
$app.showLoadingIndicator(0); // refCount: 1
$app.showLoadingIndicator(0); // refCount: 2
$app.hideLoadingIndicator(); // refCount: 1, still visible
$app.hideLoadingIndicator(); // refCount: 0, now hidden
Related
$app.showLoadingIndicator(timeoutSeconds)— Show the app loading indicator (reference counted)$form.hideLoadingIndicator()— Hide the Form-area indicator (immediate, no counting)