Created
October 20, 2022 09:45
-
-
Save FrankFonts/0d3572f48a0997bff6369f183986b25b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-container *ngTemplateOutlet="navigation; context: {classes: 'desktop', label: 'desktop'}"></ng-container> | |
<ng-container *ngTemplateOutlet="navigation; context: {classes: 'mobile', label: 'mobile'}"></ng-container> | |
<ng-template #navigation let-classes="classes" let-label="label"> | |
<div [ngClass]="classes"> | |
{{ label }} | |
</div> | |
</ng-template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment