mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 21:03:03 -05:00
feat(nx): upgrade nx 20 and angular 19
This commit is contained in:
@@ -12,6 +12,7 @@ import { RouterModule } from '@angular/router';
|
||||
Back
|
||||
</button>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class CreateUserComponent {}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import { RouterModule } from '@angular/router';
|
||||
Create User
|
||||
</button>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class DashboardComponent {}
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@ import { Component } from '@angular/core';
|
||||
template: `
|
||||
Forbidden component
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class ForbiddenComponent {}
|
||||
|
||||
@@ -20,6 +20,7 @@ import { Component, Inject } from '@angular/core';
|
||||
|
||||
<section>LoadedToken {{ token }}</section>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class HomeComponent {
|
||||
constructor(
|
||||
|
||||
@@ -12,6 +12,7 @@ import { RouterModule } from '@angular/router';
|
||||
Back
|
||||
</button>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class CreateContactComponent {}
|
||||
|
||||
|
||||
@@ -12,6 +12,7 @@ import { RouterModule } from '@angular/router';
|
||||
Create contact
|
||||
</button>
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class ContactDashboardComponent {}
|
||||
|
||||
|
||||
@@ -5,5 +5,6 @@ import { Component } from '@angular/core';
|
||||
template: `
|
||||
User Home component
|
||||
`,
|
||||
standalone: false,
|
||||
})
|
||||
export class UserHomeComponent {}
|
||||
|
||||
@@ -27,6 +27,7 @@ import { Component, Inject } from '@angular/core';
|
||||
host: {
|
||||
class: 'flex flex-col p-4 gap-3 border border-blue',
|
||||
},
|
||||
standalone: false,
|
||||
})
|
||||
export class UserShellComponent {
|
||||
constructor(@Inject(TOKEN) public token: string) {}
|
||||
|
||||
@@ -3,7 +3,6 @@ import { Component, ContentChild, Input, TemplateRef } from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'table',
|
||||
standalone: true,
|
||||
imports: [NgTemplateOutlet],
|
||||
template: `
|
||||
<thead>
|
||||
|
||||
@@ -5,7 +5,6 @@ import { User } from './user.model';
|
||||
import { Component } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'sdi-user',
|
||||
standalone: true,
|
||||
imports: [MatIconModule],
|
||||
template: `
|
||||
<mat-icon aria-hidden="false" aria-label="user icon" fontIcon="person" />
|
||||
|
||||
@@ -13,7 +13,6 @@ export const randUser = (): User => ({
|
||||
|
||||
@Component({
|
||||
selector: 'sdi-users',
|
||||
standalone: true,
|
||||
imports: [UserComponent, MatTableModule],
|
||||
template: `
|
||||
<h1 class="mt-4 text-xl">List of Users</h1>
|
||||
|
||||
Reference in New Issue
Block a user