on-internet
← Community

Testing a 2 Component MatMenu Menu/Sub-menu system

Stack Overflow ·

I’m using Angular/Material version 22. I’m trying to build a reference application with all of the things I need in an application. I’ve built a menu with the combination of a MatToolbar and a MatMenu in separate components. The menu works as expected. I’m having trouble testing the rendering of sub-menu items in the MatMenu component. The MenuBar (menu-bar) component contains the MatToolbar and renders the horizontal main menu items. // File: menu-bar.ts import {Component} from '@angular/core'; // @Component({ selector: 'app-menu-bar', standalone: false, styles: `.menubar-align-icon { vertica

Comments

Sign in or sign up to comment and upvote.

No comments yet.