My application uses MVC with Node.js and AngularJS on the frontend. The login page has a different top menu compared to other pages. How can I switch between these headers to display in the view?
In the AngularJS login controller, I call a service that checks for the username and password and returns a JWT token if the login is successful. Everything works well, but how do I render the admin page?
I'm curious about how to change the entire view instead of just changing part of it in AngularJS.