-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Expand file tree
/
Copy pathhome.component.ts
More file actions
23 lines (22 loc) · 659 Bytes
/
home.component.ts
File metadata and controls
23 lines (22 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Component } from '@angular/core';
import { NavButtonComponent } from './nav-button.component';
@Component({
imports: [NavButtonComponent],
selector: 'app-home',
template: `
<nav-button routerLink="/foo" class="fixed left-1/2 top-3">
Foo Page
</nav-button>
<div id="top" class="h-screen bg-gray-500">
Empty
<nav-button routerLink="/home" fragment="bottom">
Scroll Bottom
</nav-button>
</div>
<div id="bottom" class="h-screen bg-blue-300">
I want to scroll each
<nav-button routerLink="/home" fragment="top">Scroll Top</nav-button>
</div>
`,
})
export class HomeComponent {}