Here you will have a tab group that will contain the users list within a nav-list component
...
<mat-sidenav mode="side" opened>
<mat-tab-group>
<mat-tab label="Users">
<mat-nav-list>
<mat-list-item *ngFor="let user of users">
<span>{{user.name}}</span>
</mat-list-item>
</mat-nav-list>
</mat-tab>
<mat-tab label="Settings">
<span>Settings</span>
</mat-tab>
</mat-tab-group>
</mat-sidenav>
...
Adding users to the sidebar list
import {Component} from '@angular/core';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
})
export class AppComponent {
users = [
{
name: 'Lia Lugo',
avatar: 'svg-11',
details: 'I love cheese, ...',
isAdmin: true,
isCool: false
},
{
name: 'George Duke',
avatar: 'svg-12',
details: 'Zombie ipsum ...',
isAdmin: false,
isCool: true
}
// ...
];
}