add subTitle input
This commit is contained in:
parent
a2efff82b9
commit
a112d21f17
|
@ -210,6 +210,7 @@ const routes: Routes = [
|
|||
],
|
||||
data: {
|
||||
pageTitle: "The Page Title",
|
||||
pageSubtitle: "The Page Subtitle",
|
||||
},
|
||||
},
|
||||
],
|
||||
|
|
|
@ -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> -->
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue