Mat nav list only supports tags.
Mat nav list module.
This is a screenshot of our ui.
If mat list item is an angular component then verify that it is part of this.
However your materialmodule looks fine.
For example the common send feedback menu item.
Keep rest of the files unchanged.
Create a project with a name materialapp as explained in the angular 6 project setup chapter.
So let s register this module first in the material module ts file.
To create side navigation items we are going to use the mat nav list element that resides inside matlistmodule.
In angular material there are no mat nav bar and mat nav item.
Mat nav list mat list item routerlink home mat list item mat nav list.
Import matlistmodule from angular material list.
We can use list using mat list mat list item mat nav list mat action list mat selection list etc element.
How do i make the following horizontal instead of the apparent default of vertical.
Mat list item is not a known element.
Getting following issue when trying to import list.
Angular material list component will provide a wraps and formats a series of line items.
Sometimes a would be more semantically appropriate.
Compile and run the application to verify the result of the implemented logic.
Angular material provides a wide range of web components which are very easy to implement and use in angular applications for creating selection list expansion panel divider card badge forms.