@gorniv/ngx-universal
Version:
Packages for Angular Universal
29 lines (28 loc) • 818 B
TypeScript
import { RendererFactory2 } from '@angular/core';
import * as i0 from "@angular/core";
export declare class LinkService {
private rendererFactory;
private document;
constructor(rendererFactory: RendererFactory2, document: Document);
/**
* Inject the State into the bottom of the <head>
*/
addTag(tag: LinkDefinition, forceCreation?: boolean): void;
private _parseSelector;
static ɵfac: i0.ɵɵFactoryDeclaration<LinkService, never>;
static ɵprov: i0.ɵɵInjectableDeclaration<LinkService>;
}
export declare type LinkDefinition = {
charset?: string;
crossorigin?: string;
href?: string;
hreflang?: string;
media?: string;
rel?: string;
rev?: string;
sizes?: string;
target?: string;
type?: string;
} & {
[prop: string]: string;
};