Skip to content

Instantly share code, notes, and snippets.

@GerritRiesch94
Last active March 2, 2023 13:02
Show Gist options
  • Save GerritRiesch94/108f5f1a46463d108a187369bf1f296a to your computer and use it in GitHub Desktop.
Save GerritRiesch94/108f5f1a46463d108a187369bf1f296a to your computer and use it in GitHub Desktop.
Example for ngOptimizedImage usage
<mat-drawer-container autosize class="h-screen">
<mat-drawer class="flex h-full flex-col justify-center overflow-x-hidden px-2" mode="side" opened="true">
<app-sidebar></app-sidebar>
</mat-drawer>
<mat-drawer-content>
<!-- // random image to load -->
<img ngSrc="https://picsum.photos/200/300" width="200" height="300" alt="random Picture" priority />
<app-navbar></app-navbar>
<router-outlet></router-outlet>
</mat-drawer-content>
</mat-drawer-container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment