Skip to content

Commit ec9d6cd

Browse files
authored
add for routes in workspace (#61)
1 parent 96fd323 commit ec9d6cd

File tree

1 file changed

+4
-18
lines changed

1 file changed

+4
-18
lines changed

projects/lib-workspace/src/app/app.component.html

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<fs-nav-frame [navFrameConfig]="navFrameConfig" [navRoutes]="navRoutes">
22
<fs-nav-frame-toolbar>
3-
<!-- <ng-template #tbcontent>hallo</ng-template> -->
43
<fs-nav-frame-toolbar-start>Current App Title</fs-nav-frame-toolbar-start>
54

65
<fs-nav-frame-toolbar-center>
@@ -26,26 +25,14 @@
2625
</fs-nav-frame-toolbar>
2726

2827
<fs-nav-frame-sidebar>
29-
<fs-nav-frame-sidebar-item routerLink="home">
30-
<mat-icon class="icon">home</mat-icon>
31-
<span class="title">Home</span>
28+
29+
<fs-nav-frame-sidebar-item *ngFor="let route of navRoutes" routerLink="{{route.path}}">
30+
<mat-icon class="icon">{{route.icon}}</mat-icon>
31+
<span class="title">{{route.title}}</span>
3232
</fs-nav-frame-sidebar-item>
33-
<fs-nav-frame-sidebar-item routerLink="nav-frame">
34-
<mat-icon class="icon">pivot_table_chart</mat-icon>
35-
<span class="title">Nav Frame</span>
36-
</fs-nav-frame-sidebar-item>
37-
38-
<!-- <fs-nav-frame-sidebar-item routerLink="home"></fs-nav-frame-sidebar-item>
3933

40-
<fs-nav-frame-sidebar-item routerLink="nav-frame">
41-
<fs-sidebar-item-icon>
42-
<mat-icon>pivot_table_chart</mat-icon>
43-
</fs-sidebar-item-icon>
44-
<fs-sidebar-item-title>Nav Frame</fs-sidebar-item-title>
45-
</fs-nav-frame-sidebar-item> -->
4634
</fs-nav-frame-sidebar>
4735

48-
<!-- <fs-nav-frame-sidebar> -->
4936
<fs-nav-user-profile >
5037
<!-- profilePicture="https://material.angular.io/assets/img/examples/shiba1.jpg" -->
5138
<fs-nav-user-profile-name>Some User</fs-nav-user-profile-name>
@@ -60,7 +47,6 @@
6047
</button>
6148
</fs-nav-user-profile-actions>
6249
</fs-nav-user-profile>
63-
<!-- </fs-nav-frame-sidebar> -->
6450

6551
<fs-nav-frame-content>
6652
<router-outlet></router-outlet>

0 commit comments

Comments
 (0)