mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-12 13:53:03 -05:00
refactor: move libs
This commit is contained in:
23
apps/angular/39-injection-token/src/app/app.component.ts
Normal file
23
apps/angular/39-injection-token/src/app/app.component.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { RouterLink, RouterOutlet } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [RouterOutlet, RouterLink],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<div class="mb-5 flex gap-4">
|
||||
<button class="rounded-md border px-4 py-2" routerLink="video">
|
||||
Video
|
||||
</button>
|
||||
<button class="rounded-md border px-4 py-2" routerLink="phone">
|
||||
Phone
|
||||
</button>
|
||||
</div>
|
||||
<router-outlet />
|
||||
`,
|
||||
host: {
|
||||
class: 'p-10 flex flex-col',
|
||||
},
|
||||
})
|
||||
export class AppComponent {}
|
||||
Reference in New Issue
Block a user