Put in order · Angular course · Module 12: Security and Performance
Logged-in state via signal
Order the lines that define the reactive logged-in state in AuthService (top to bottom):
Items to put in order
- private http = inject(HttpClient);
- readonly isLoggedIn = computed(() => !!this.currentUser());
- private currentUser = signal<User | null>(null);
You can check the correct answer by solving this task in the CodeWorlds game.