-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathfoo.component.ts
More file actions
21 lines (20 loc) · 656 Bytes
/
foo.component.ts
File metadata and controls
21 lines (20 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Component } from '@angular/core';
import { MatNavList } from '@angular/material/list';
import { RouterLink } from '@angular/router';
import { NavButtonComponent } from './nav-button.component';
@Component({
imports: [NavButtonComponent, RouterLink, MatNavList],
selector: 'app-foo',
template: `
<div class="h-screen bg-blue-200">
<mat-nav-list>
<h2>Welcome to foo page</h2>
<app-nav-button [routerLink]="['/home']" class="fixed left-1/2 top-3">
Home Page
</app-nav-button>
</mat-nav-list>
</div>
<div class="h-screen bg-red-200">section 2</div>
`,
})
export class FooComponent {}