mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
25 lines
531 B
TypeScript
25 lines
531 B
TypeScript
import { Component, NgModule } from '@angular/core';
|
|
import { RouterModule } from '@angular/router';
|
|
|
|
@Component({
|
|
selector: 'lib-create-user',
|
|
template: `
|
|
Create User Form
|
|
|
|
<button
|
|
routerLink=".."
|
|
class="ml-5 rounded-lg border bg-gray-700 p-2 text-white">
|
|
Back
|
|
</button>
|
|
`,
|
|
})
|
|
export class CreateUserComponent {}
|
|
|
|
@NgModule({
|
|
imports: [
|
|
RouterModule.forChild([{ path: '', component: CreateUserComponent }]),
|
|
],
|
|
declarations: [CreateUserComponent],
|
|
})
|
|
export class CreateUserModule {}
|