Ngx meta.ngxmetacoremodule.forroot
Home > @davidlj95/ngx-meta > NgxMetaCoreModule > forRoot
NgxMetaCoreModule.forRoot() method
Provides the core library services
Allows specifying some default metadata values
Signature:
static forRoot(options?: {
defaults?: MetadataValues;
}): ModuleWithProviders<NgxMetaCoreModule>;
Parameters
Parameter | Type | Description |
---|---|---|
options | { defaults?: MetadataValues; } | (Optional) Allows providing some default metadata values using defaults |
Returns:
ModuleWithProviders<NgxMetaCoreModule>
Example
You can set some defaults using the options
argument
NgxMetaCoreModule.forRoot({defaults: {title: 'Default title'}})