Skip to content

Instantly share code, notes, and snippets.

@FrankFonts
Created October 20, 2022 09:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FrankFonts/0d3572f48a0997bff6369f183986b25b to your computer and use it in GitHub Desktop.
Save FrankFonts/0d3572f48a0997bff6369f183986b25b to your computer and use it in GitHub Desktop.
<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