In the Angular material, MatMenu documentation https://material.angular.io/components/menu/api, the API has a "items" property which is documented like an attribute of type QueryList to the MatMenu component.
In the Angular documentation for QueryList, https://angular.io/api/core/QueryList, the live example shows the @ContentChildren(Item) items: QueryList returns a QueryList of type "Item" component inside the "container" template. And, when I checked out the code for MatMenu directive https://github.com/angular/material2/blob/master/src/lib/menu/menu-directive.ts. They are also getting a list of all the mat-menu-item inside the MatMenu component.
Few questions, I have is:
- How to use "items" property?
- Can we dynamically set mat-menu-items using this property?