UNPKG

@rero/ng-core

Version:

RERO angular core library.

45 lines (44 loc) 1.17 kB
import { Meta, Title } from '@angular/platform-browser'; import { TranslateService } from '@ngx-translate/core'; import * as i0 from "@angular/core"; /** * Service for managing HTML meta and title. */ export declare class TitleMetaService { protected titleService: Title; protected metaService: Meta; protected translateService: TranslateService; private prefix; /** * Prefix of title window * @param prefix - string * @return this */ setPrefix(prefix?: string): this; /** * Title window <head> * @param title - sting * @return this */ setTitle(title: string): this; /** * Get Title * @return string */ getTitle(): string; /** * Meta window <head> * @param name - string * @param content - string * @return this */ setMeta(name: string, content: string): this; /** * Get Meta with its name * @param name - string * @return string */ getMeta(name: string): HTMLMetaElement; static ɵfac: i0.ɵɵFactoryDeclaration<TitleMetaService, never>; static ɵprov: i0.ɵɵInjectableDeclaration<TitleMetaService>; }