add subTitle input

This commit is contained in:
rr-bw 2024-04-25 10:04:56 -07:00
parent a2efff82b9
commit a112d21f17
No known key found for this signature in database
GPG Key ID: 3FA13C3ADEE51D5D
3 changed files with 4 additions and 3 deletions

View File

@ -210,6 +210,7 @@ const routes: Routes = [
],
data: {
pageTitle: "The Page Title",
pageSubtitle: "The Page Subtitle",
},
},
],

View File

@ -1,6 +1,4 @@
<!-- <div *ngIf="routeData$ | async as routeData"> -->
<auth-anon-layout [title]="pageTitle">
<auth-anon-layout [title]="pageTitle" [subtitle]="pageSubtitle">
<router-outlet></router-outlet>
<router-outlet slot="secondary" name="secondary"></router-outlet>
</auth-anon-layout>
<!-- </div> -->

View File

@ -10,9 +10,11 @@ import { AnonLayoutComponent } from "./anon-layout.component";
})
export class AnonLayoutWrapperComponent implements OnInit, OnDestroy {
pageTitle: string;
pageSubtitle: string;
constructor(private route: ActivatedRoute) {
this.pageTitle = this.route.snapshot.firstChild.data["pageTitle"];
this.pageSubtitle = this.route.snapshot.firstChild.data["pageSubtitle"];
}
async ngOnInit() {