mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-11 21:33:02 -05:00
feat(nx): upgrade nx 20 and angular 19
This commit is contained in:
@@ -7,12 +7,11 @@ import { TeacherCardComponent } from './component/teacher-card/teacher-card.comp
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
<div class="grid grid-cols-3 gap-3">
|
||||
<app-teacher-card></app-teacher-card>
|
||||
<app-student-card></app-student-card>
|
||||
<app-city-card></app-city-card>
|
||||
<app-teacher-card />
|
||||
<app-student-card />
|
||||
<app-city-card />
|
||||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [TeacherCardComponent, StudentCardComponent, CityCardComponent],
|
||||
})
|
||||
export class AppComponent {}
|
||||
|
||||
@@ -3,7 +3,6 @@ import { Component, OnInit } from '@angular/core';
|
||||
@Component({
|
||||
selector: 'app-city-card',
|
||||
template: 'TODO City',
|
||||
standalone: true,
|
||||
imports: [],
|
||||
})
|
||||
export class CityCardComponent implements OnInit {
|
||||
|
||||
@@ -13,7 +13,6 @@ import { CardComponent } from '../../ui/card/card.component';
|
||||
[type]="cardType"
|
||||
customClass="bg-light-green"></app-card>
|
||||
`,
|
||||
standalone: true,
|
||||
styles: [
|
||||
`
|
||||
::ng-deep .bg-light-green {
|
||||
|
||||
@@ -20,7 +20,6 @@ import { CardComponent } from '../../ui/card/card.component';
|
||||
}
|
||||
`,
|
||||
],
|
||||
standalone: true,
|
||||
imports: [CardComponent],
|
||||
})
|
||||
export class TeacherCardComponent implements OnInit {
|
||||
|
||||
@@ -36,7 +36,6 @@ import { ListItemComponent } from '../list-item/list-item.component';
|
||||
</button>
|
||||
</div>
|
||||
`,
|
||||
standalone: true,
|
||||
imports: [NgIf, NgFor, ListItemComponent],
|
||||
})
|
||||
export class CardComponent {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { bootstrapApplication } from '@angular/platform-browser';
|
||||
import { AppComponent } from './app/app.component';
|
||||
|
||||
bootstrapApplication(AppComponent);
|
||||
bootstrapApplication(AppComponent).catch((err) => console.error(err));
|
||||
|
||||
Reference in New Issue
Block a user