Coding task · Angular course · Module 4: Routing
Practice: Auth Guard
A guard is a function returning a boolean, UrlTree, or Observable/Promise. In Angular 14+ functional guards are recommended over class-based ones.
Task
Complete the functional guard that checks whether the user is logged in.