-import { Injectable } from '@angular/core';
+import { Injectable, inject } from '@angular/core';
import { Actions, createEffect, ofType } from '@ngrx/effects';
import { map, catchError, switchMap } from 'rxjs/operators';
import { of } from 'rxjs';
@Injectable()
export class LoginEffects {
+ private authService = inject(AuthService);
+
login$ = createEffect(() =>
this.actions$.pipe(
ofType('[Login] User Login'),
)
);
- constructor(private actions$: Actions, private authService: AuthService) {}
+ constructor(private actions$: Actions) {}
}