-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
583f9bb
commit 2865954
Showing
5 changed files
with
166 additions
and
9 deletions.
There are no files selected for viewing
86 changes: 86 additions & 0 deletions
86
projects/sandbox/src/app/routes/c-select-route/c-select-route.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
projects/sandbox/src/app/routes/c-select-side-route/c-select-side-route.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
<p>c-select-side-route works!</p> | ||
<nav class="side-navigation-container"> | ||
<p class="title">On this page</p> | ||
<ul> | ||
<li *ngFor="let item of navigation"> | ||
<a | ||
[routerLink]="[item.link]" | ||
[routerLinkActive]="'active'" | ||
[routerLinkActiveOptions]="{ matrixParams: 'exact', queryParams: 'exact', paths: 'exact', fragment: 'exact' }" | ||
[fragment]="item.fragment || null" | ||
> | ||
{{ item.label }} | ||
</a> | ||
</li> | ||
</ul> | ||
</nav> |
26 changes: 19 additions & 7 deletions
26
projects/sandbox/src/app/routes/c-select-side-route/c-select-side-route.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-c-select-side-route', | ||
templateUrl: './c-select-side-route.component.html', | ||
styleUrls: ['./c-select-side-route.component.scss'] | ||
selector: 'app-c-select-side-route', | ||
templateUrl: './c-select-side-route.component.html', | ||
styleUrls: ['./c-select-side-route.component.scss'], | ||
}) | ||
export class CSelectSideRouteComponent implements OnInit { | ||
public navigation: any[] = [ | ||
{ | ||
label: 'Select', | ||
alt: '', | ||
fragment: 'select', | ||
link: '/components/select', | ||
}, | ||
{ | ||
label: 'Basic Usage', | ||
alt: '', | ||
fragment: 'basic-usage', | ||
link: '/components/select', | ||
}, | ||
]; | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
} | ||
constructor() {} | ||
|
||
ngOnInit(): void {} | ||
} |