feat(anchorscrolling): new challenge

This commit is contained in:
thomas
2023-05-02 12:36:50 +02:00
parent 6db4dfbb9b
commit 75fa6eac9b
17 changed files with 303 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
import { Component } from '@angular/core';
import { AnchorButtonComponent } from './anchor-button.component';
@Component({
standalone: true,
imports: [AnchorButtonComponent],
selector: 'app-root',
template: `
<div id="top" class="h-screen bg-gray-500">
Empty
<anchor-button href="#bottom">Scroll Bottom</anchor-button>
</div>
<div id="bottom" class="h-screen bg-blue-300">
I want to scroll each
<anchor-button href="#top">Scroll Top</anchor-button>
</div>
`,
})
export class AppComponent {}