Ngx meta.globalmetadataimage
Home > @davidlj95/ngx-meta > GlobalMetadataImage
GlobalMetadataImage interface
Specifies image metadata (will be used for link previews / social cards) to be used for more than one module. Like:
-
OpenGraph.image (needs standard module)
-
TwitterCard.image (needs Twitter Cards module)
Open Graph allows for more attributes for the image. Specify OpenGraph.image if you want to customize those too.
Signature:
export interface GlobalMetadataImage
Remarks
Used in GlobalMetadata.image with type GlobalMetadataImage
Properties
Property | Modifiers | Type | Description |
---|---|---|---|
alt | readonly |
string | A description of what is in the image (not a caption) to users who are visually impaired. Used for: - OpenGraphImage.alt (needs Open Graph module) - TwitterCardImage.alt (needs Twitter Cards module) |
url | readonly |
string | URL | URL of the image. Used for: - OpenGraphImage.url (needs Open Graph module) - TwitterCardImage.url (needs Twitter Cards module) |