Skip to content

Ngx meta.ngxmetacoremodule

Home > @davidlj95/ngx-meta > NgxMetaCoreModule

NgxMetaCoreModule class

Provides ngx-meta's core library services.

Check out provideNgxMetaCore() for the standalone, recommended API.

Use NgxMetaCoreModule.forRoot() method. Importing the module class alone does nothing.

Signature:

export declare class NgxMetaCoreModule 

Methods

Method Modifiers Description
forRoot(features) static

Provides ngx-meta's core library services.

Check out provideNgxMetaCore() for the standalone, recommended API.

Allows setting up additional features:

- withNgxMetaDefaults()

- withNgxMetaBaseUrl()

Previous features configuration with an options object has been deprecated. See NgxMetaCoreModule.forRoot() for more information and how to migrate.

forRoot(options) static

Deprecated way of configuring the core module features.

Check out provideNgxMetaCore() for the standalone, recommended API.

Otherwise, to keep using module-based APIs, keep reading.

This way of configuring options doesn't allow tree shaking unneeded features. So usage is discouraged and deprecated. See deprecation notice in API docs details for the tree-shaking friendly alternative Check out the example below for a migration example