UNPKG

@davidlj95/ngx-meta

Version:

Set your Angular site's metadata: standard meta tags, Open Graph, Twitter Cards, JSON-LD structured data and more. Supports SSR (and Angular Universal). Use a service. Use routes' data. Set it up in a flash! 🚀

62 lines (58 loc) • 1.84 kB
// Generated by dts-bundle-generator v9.5.1 import * as i0 from '@angular/core'; import { Provider } from '@angular/core'; /** * {@inheritDoc provideNgxMetaJsonLd} * @deprecated Use {@link provideNgxMetaJsonLd} instead * @public */ export declare const JSON_LD_METADATA_PROVIDER: import("@angular/core").Provider; /** * Utility type to provide specific * {@link https://ngx-meta.dev/built-in-modules/json-ld/ | JSON-LD module} * metadata * * @public */ export interface JsonLdMetadata { /** * JSON-LD object (as a JSON object) to set in the page * * An array of JSON-LD objects can be given too. They will all be added inside the same `<script>` element. * As per {@link https://developers.google.com/search/docs/appearance/structured-data/sd-policies#individual-items * | Google's structured data general guidelines}. * * @remarks * * Provider: * * {@link provideNgxMetaJsonLd} */ readonly jsonLd?: object | readonly object[] | null; } /** * Provides {@link https://ngx-meta.dev/built-in-modules/json-ld/ | JSON-LD module} * metadata managers. * * Check out {@link provideNgxMetaJsonLd} for the standalone, recommended API. * * @public */ export declare class NgxMetaJsonLdModule { static ɵfac: i0.ɵɵFactoryDeclaration<NgxMetaJsonLdModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NgxMetaJsonLdModule, never, never, never>; static ɵinj: i0.ɵɵInjectorDeclaration<NgxMetaJsonLdModule>; } /** * Provides {@link https://ngx-meta.dev/built-in-modules/json-ld/ | JSON-LD module} * metadata managers. * * @remarks * * This is the standalone, recommended API. Using this API is preferred. * However, you may also use {@link NgxMetaJsonLdModule} as the Angular module-based equivalent API. * * @public */ export declare const provideNgxMetaJsonLd: () => Provider; export {};