본문으로 건너뛰기

hideLoadingIndicator

앱 전체 로딩 인디케이터 오버레이를 숨깁니다. 레퍼런스 카운팅 방식으로 동작합니다.

Parameters

없음

Returns

없음 (void)

Description

_indicatorRefCount를 1 감소시키며, 카운터가 0이 될 때만 실제로 오버레이를 숨깁니다. $app.showLoadingIndicator를 N번 호출했다면 hideLoadingIndicator도 N번 호출해야 인디케이터가 사라집니다.

$app vs $form 상세 비교

구분$app.hideLoadingIndicator$form.hideLoadingIndicator
숨김 범위앱 전체 (루트 오버레이)해당 폼 영역만
레퍼런스 카운팅✅ 있음 — refCount가 0일 때만 숨김❌ 없음 — 즉시 숨김
중첩 show 2회 후 hide 1회카운터 1 감소, 아직 표시 중즉시 사라짐

Example

// 기본 사용
$app.showLoadingIndicator(0);
$http.get("/api/data", function(res) {
$app.hideLoadingIndicator(); // refCount 0 → 숨김
$log.i("완료:", res.data);
});

// 중첩 호출 — show 2회 → hide 2회 필요
$app.showLoadingIndicator(0); // refCount: 1
$app.showLoadingIndicator(0); // refCount: 2
$app.hideLoadingIndicator(); // refCount: 1, 아직 표시 중
$app.hideLoadingIndicator(); // refCount: 0, 이제 숨겨짐
  • $app.showLoadingIndicator(timeoutSeconds) — 앱 로딩 인디케이터 표시 (레퍼런스 카운팅)
  • $form.hideLoadingIndicator() — 폼 영역 인디케이터 숨김 (즉시, 카운팅 없음)