Constructor lifecycle.
After the next render, restores remembered credentials (if any) into the login form fields.
Authentication service for handling user login requests.
Angular DestroyRef for registering cleanup logic (unsubscribe, etc.).
Signal controlling the loading spinner state.
"Remember Me" checkbox value. When true, stores credentials in localStorage.
Data loaded from localStorage if the user previously enabled "Remember Me".
Contains email and password if available.
Router instance used for post-login navigation.
Signal controlling password visibility (true = visible).
Handles login form submission.
Behavior:
/main-content on success.All subscriptions are cleaned up on component destroy.
The NgForm instance representing the login form.
Login component.
Handles user authentication, including:
Selector:
app-loginStandalone:true