Class id for each menu item (main navigation)

Hi, how can I add a id in each menuitem for styling with css?

Its a declaration in the root.ts2 or changing in MainMenu.html necessary?

Depends pretty much on how the id should look like. Probably the easiest would be to just change your template and do something like id="m{item.node.identifier}" those identifiers are not pretty but definitely unique. The m (or any other prefix) is needed as css ids cannot start with digits but the identifier could.

Thanks a lot! And thanks for the notice with the “m” before the id. Many thanks!