12345678910111213141516171819202122 |
- import { NzSafeAny } from 'ng-zorro-antd/core/types';
- import * as i0 from "@angular/core";
- /**
- * Some singletons should have life cycle that is same to Angular's. This service make sure that
- * those singletons get destroyed in HMR.
- */
- export declare class NzSingletonService {
- private get singletonRegistry();
- /**
- * This registry is used to register singleton in dev mode.
- * So that singletons get destroyed when hot module reload happens.
- *
- * This works in prod mode too but with no specific effect.
- */
- private _singletonRegistry;
- registerSingletonWithKey(key: string, target: NzSafeAny): void;
- unregisterSingletonWithKey(key: string): void;
- getSingletonWithKey<T>(key: string): T | null;
- private withNewTarget;
- static ɵfac: i0.ɵɵFactoryDeclaration<NzSingletonService, never>;
- static ɵprov: i0.ɵɵInjectableDeclaration<NzSingletonService>;
- }
|