mirror of
https://github.com/Raghu-Ch/angular-challenges.git
synced 2026-02-10 12:53:03 -05:00
feat(nx): upgrade nx 20 and angular 19
This commit is contained in:
@@ -15,7 +15,6 @@ import { loadUsers } from './store/user/user.actions';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
standalone: true,
|
||||
imports: [NgFor, AsyncPipe],
|
||||
template: `
|
||||
<h1>Activity Board</h1>
|
||||
|
||||
@@ -4,7 +4,6 @@ import { Store } from '@ngrx/store';
|
||||
import { appActions } from './app.actions';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [RouterOutlet, RouterLink],
|
||||
selector: 'app-root',
|
||||
template: `
|
||||
|
||||
@@ -1,5 +1,9 @@
|
||||
import { FakeBackendService } from '@angular-challenges/power-of-effect/backend';
|
||||
import { APP_INITIALIZER, ApplicationConfig, inject } from '@angular/core';
|
||||
import {
|
||||
ApplicationConfig,
|
||||
inject,
|
||||
provideAppInitializer,
|
||||
} from '@angular/core';
|
||||
import { provideAnimations } from '@angular/platform-browser/animations';
|
||||
import { provideRouter } from '@angular/router';
|
||||
import { provideEffects } from '@ngrx/effects';
|
||||
@@ -27,22 +31,20 @@ export const appConfig: ApplicationConfig = {
|
||||
provideStore(REDUCERS),
|
||||
provideEffects([TeacherEffects, StudentEffects]),
|
||||
provideRouter(ROUTES),
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
useFactory: () => {
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = (() => {
|
||||
const service = inject(FakeBackendService);
|
||||
return () => service.start();
|
||||
},
|
||||
},
|
||||
{
|
||||
provide: APP_INITIALIZER,
|
||||
multi: true,
|
||||
useFactory: () => {
|
||||
})();
|
||||
return initializerFn();
|
||||
}),
|
||||
provideAppInitializer(() => {
|
||||
const initializerFn = (() => {
|
||||
const service = inject(NotificationService);
|
||||
return () => service.init();
|
||||
},
|
||||
},
|
||||
})();
|
||||
return initializerFn();
|
||||
}),
|
||||
provideAnimations(),
|
||||
],
|
||||
};
|
||||
|
||||
@@ -5,7 +5,6 @@ import { provideComponentStore } from '@ngrx/component-store';
|
||||
import { SchoolStore } from './school.store';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [NgFor, AsyncPipe],
|
||||
providers: [provideComponentStore(SchoolStore)],
|
||||
selector: 'school',
|
||||
|
||||
@@ -5,7 +5,6 @@ import { Store } from '@ngrx/store';
|
||||
import { StudentSelectors } from './store/student.selectors';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [NgFor, AsyncPipe],
|
||||
selector: 'student',
|
||||
template: `
|
||||
|
||||
@@ -5,7 +5,6 @@ import { Store } from '@ngrx/store';
|
||||
import { TeacherSelectors } from './store/teacher.selectors';
|
||||
|
||||
@Component({
|
||||
standalone: true,
|
||||
imports: [NgFor, AsyncPipe],
|
||||
selector: 'teacher',
|
||||
template: `
|
||||
|
||||
Reference in New Issue
Block a user