<button mat-raised-button (click)="drawer.toggle()">
Toggle drawer
</button>
<mat-drawer-container
[hasBackdrop]="false"
class="example-container my-mat-drawer-container">
<mat-drawer #drawer mode="side" position="end">
I'm a drawer
</mat-drawer>
<mat-drawer-content class="content my-mat-drawer-content">
<div >
<div class="sticky1">
I will stick to the screen when you reach my scroll position
</div>
</div>
<div>
<div class="sticky2">
I will stick to the screen when you reach my scroll position
</div>
</div>
</mat-drawer-content>
</mat-drawer-container>
<!-- Copyright 2019 Google Inc. All Rights Reserved.
Use of this source code is governed by an MIT-style license that
can be found in the LICENSE file at
http://angular.io/license -->