UNPKG

@visa/nova-angular

Version:

Visa Product Design System Nova Angular library

51 lines (50 loc) 1.92 kB
/** * Copyright (c) 2025 Visa, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * **/ import { ApplicationRef, WritableSignal } from '@angular/core'; import * as i0 from "@angular/core"; /** * This service is used internally by the library and can optionally be used directly. <br /> * It’s required for SSR integration but not necessary for functions behind Angular's renderer. */ export declare class AppReadyService { private appRef; private document; private platformId; /** * Signal to indicate if the application is stable. */ appStable: WritableSignal<boolean>; /** @ignore */ _browserAndDomReady: boolean; constructor(appRef: ApplicationRef, document: Document, platformId: object); /** * The checkDocumentExists method checks and returns the document object if applicable. */ checkDocumentExists(): Document | boolean; /** * The checkIsPlatformBrowser method checks if the platform is a browser (as opposed to server). * @returns boolean */ checkIsPlatformBrowser(): boolean; /** * The isBrowserAndDomAvailable method checks for both the document and the browser platform. * @returns boolean */ isBrowserAndDomAvailable(): boolean; static ɵfac: i0.ɵɵFactoryDeclaration<AppReadyService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<AppReadyService>; }