mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 05:43:03 -05:00
feat: setup challenge 44
This commit is contained in:
28
apps/angular/view-transition/src/app/app.component.ts
Normal file
28
apps/angular/view-transition/src/app/app.component.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { RouterLink, RouterOutlet } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [RouterLink, RouterOutlet],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<div class="flex gap-3">
|
||||
<button
|
||||
class="rounded-md border border-blue-500 bg-blue-200 px-4 py-2 text-xl"
|
||||
routerLink="foo">
|
||||
Foo
|
||||
</button>
|
||||
<button
|
||||
class="rounded-md border border-blue-500 bg-blue-200 px-4 py-2 text-xl"
|
||||
routerLink="bar">
|
||||
Bar
|
||||
</button>
|
||||
</div>
|
||||
<router-outlet />
|
||||
`,
|
||||
host: {
|
||||
class: 'flex flex-col gap-10 border p-10 h-screen',
|
||||
},
|
||||
styles: [''],
|
||||
})
|
||||
export class AppComponent {}
|
||||
Reference in New Issue
Block a user