mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat(challengestandalone): challenge standalone
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import { Component, NgModule } from '@angular/core';
|
||||
import { RouterModule } from '@angular/router';
|
||||
|
||||
@Component({
|
||||
selector: 'lib-contact-dashboard',
|
||||
template: `Contact Dashboard
|
||||
|
||||
<button
|
||||
routerLink="create-contact"
|
||||
class="border bg-gray-700 rounded-lg p-2 text-white ml-10">
|
||||
Create contact
|
||||
</button> `,
|
||||
})
|
||||
export class ContactDashboardComponent {}
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
RouterModule.forChild([{ path: '', component: ContactDashboardComponent }]),
|
||||
],
|
||||
declarations: [ContactDashboardComponent],
|
||||
})
|
||||
export class ContactDashboardModule {}
|
||||
Reference in New Issue
Block a user