Menu
When running a fresh expanded Angular project, you'll notice that the sidebar does not contain any items. These need to be custom added in the menu.service.ts
. This service contains custom anchors to add menu items.
MenuItem.ts
export type MenuItem = {
title: string,
link?: string
icon?: string
identifier?: string
childItems?: MenuItem[]
}
A menu item requires a title, but other attributes are optional. Entries of title will be translated using the translation service.
Example
{
title: 'space.name',
childItems: [
{
title: 'space.data_elements.star_ship.name',
link: '/space/star-ship',
icon: 'spaceship'
}
]
}