Skip to content

Commit

Permalink
minor nav li template cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
wwelling committed Sep 13, 2021
1 parent bc5619b commit 625cefd
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,9 @@
<li *ngIf="href" class="nav-item">
<a class="nav-link d-flex align-items-center justify-content-center" [href]="href">
<ng-container *ngTemplateOutlet="contentProjection"></ng-container>
<ng-content></ng-content>
</a>
</li>

<li *ngIf="!href" class="nav-item d-flex align-items-center justify-content-center">
<ng-container *ngTemplateOutlet="contentProjection"></ng-container>
</li>

<ng-template #contentProjection>
<ng-content></ng-content>
</ng-template>
</li>

0 comments on commit 625cefd

Please sign in to comment.