mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 04:43:03 -05:00
25 lines
585 B
TypeScript
25 lines
585 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'lib-contact-dashboard',
|
|
template: `
|
|
Contact Dashboard
|
|
|
|
<button
|
|
routerLink="create-contact"
|
|
class="ml-10 rounded-lg border bg-gray-700 p-2 text-white">
|
|
Create contact
|
|
</button>
|
|
`,
|
|
})
|
|
export class ContactDashboardComponent {}
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([{ path: '', component: ContactDashboardComponent }]),
|
|
],
|
|
declarations: [ContactDashboardComponent],
|
|
})
|
|
export class ContactDashboardModule {}
|