Skip to content

Ngx meta.withcontentattribute

Home > @davidlj95/ngx-meta > withContentAttribute

withContentAttribute variable

Creates an NgxMetaElementAttributes object specifying the content attribute to the given value. Plus optional extras.

Unless given value is null or undefined. In that case, undefined is returned.

See NgxMetaElementsService.set()

Signature:

withContentAttribute: {
    (content: null | undefined, extras?: NgxMetaElementAttributes): undefined;
    (content: string, extras?: NgxMetaElementAttributes): NgxMetaElementAttributes;
    (content: string | null | undefined, extras?: NgxMetaElementAttributes): NgxMetaElementAttributes | undefined;
}