Skip to content
This repository has been archived by the owner on May 9, 2021. It is now read-only.

Commit

Permalink
feat: conditionally render header and footer in layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Derlys authored and beeman committed Mar 26, 2020
1 parent dd0fd2d commit 4150b80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion projects/ui/src/lib/components/ui-layout.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,13 @@ import { UiLayout } from '../interfaces/ui-layout'
[links]="config?.header?.links"
[fluid]="config?.header?.fluid || false"
[style]="config?.header?.style"
*ngIf="config?.brand || config?.header"
>
</ui-header>
<ui-content [fluid]="config?.content?.fluid" [padding]="config?.content?.padding || true">
<ng-content></ng-content>
</ui-content>
<div class="my-md-5 my-3">
<div class="my-md-5 my-3" *ngIf="config?.footer">
<ui-footer [html]="config?.footer?.html" [links]="config?.footer?.links"></ui-footer>
</div>
`,
Expand Down

0 comments on commit 4150b80

Please sign in to comment.