Ngx meta.providengxmetacore
Home > @davidlj95/ngx-meta > provideNgxMetaCore
provideNgxMetaCore() function
Adds core services of the library to the application.
For module-based apps, use NgxMetaCoreModule.forRoot() instead
Allows specifying some default metadata values. Keep reading.
Signature:
provideNgxMetaCore: (...features: ReadonlyArray<CoreFeature>) => EnvironmentProviders
Parameters
Parameter | Type | Description |
---|---|---|
features | ReadonlyArray<CoreFeature> | Features to configure the core with. Currently just withNgxMetaDefaults() available |
Returns:
EnvironmentProviders
Example
To specify some default metadata values, use withNgxMetaDefaults()
provideNgxMetaCore(
withNgxMetaDefaults({title: 'Default title'})
)