Front-end migration

Admin settings module

The admin settings feature requires adding a new dependency, importing the module, and adding a menu item.

1. Add new dependency

Add the following dependency to package.json:

{
  "dependencies": {
    "@valtimo/admin-settings": "13.28.1"
  }
}

Replace 13.28.1 with the Valtimo version you are upgrading to, or use the appropriate package URL.

2. Import AdminSettingsModule

In app.module.ts, add the import for AdminSettingsModule:

import {AdminSettingsModule} from '@valtimo/admin-settings';

Then add AdminSettingsModule to the imports array of your AppModule:

@NgModule({
  imports: [
    // ... existing imports
    AdminSettingsModule,
  ],
})
export class AppModule {}

3. Add admin settings menu item

In your environment.ts, add a menu item for the admin settings page under the admin menu:

Last updated