@this-dot/route-config
Version:
A library containing directives and services for configuring components via Route's routeData property
23 lines (22 loc) • 1.08 kB
TypeScript
import { OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
import { RouteConfigService } from '../route-config.service';
import * as i0 from "@angular/core";
export declare class RouteDataHasService<CThen, CElse, RouteTags extends string = string, RoutePropNames extends string = string> implements OnDestroy {
private routeConfigService;
private template;
private viewContainer;
private tags$;
private propName$;
private elseTemplate$;
private destroy$;
private display$;
private readonly createView$;
setTags(tags: RouteTags | RouteTags[]): void;
setPropName(propName: RoutePropNames): void;
setElseTemplate(elseTemplate: TemplateRef<CElse>): void;
constructor(routeConfigService: RouteConfigService<string, string>);
init(template: TemplateRef<CThen>, viewContainer: ViewContainerRef): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<RouteDataHasService<any, any, any, any>, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<RouteDataHasService<any, any, any, any>>;
}