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