'Angular Fire 7 canActivate
I'm initializing a new app with angular 13 and angular fire 7.
when using AngularFireAuthGuard I got nullInjetor error
import { AngularFireAuthGuard } from '@angular/fire/compat/auth-guard';
I change it to AuthGuard and every thing works great
import { AuthGuard } from '@angular/fire/auth-guard';
is that valid and good way ? or I have to provide any thing to use AngularFireAuthGuard !!
imports that works:
import {redirectLoggedInTo,redirectUnauthorizedTo,} from '@angular/fire/compat/auth-guard';
import { AuthGuard } from '@angular/fire/auth-guard';
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
