I've been working on a single-page application with ngRoute for navigation between tabs. Now, I need to incorporate a login and registration feature. After that, users should be able to access all the tabs.
I'm unsure about the following: 1) Should I create a separate page for login and registration, and then redirect users to the main page with all the tabs after successful login? Is this approach suitable for a single-page application?
2) Alternatively, should I integrate the login and registration forms on the same page as the tabs navigation? If so, how can I ensure the tabs are hidden until after login, to prevent any security threats?
The application is built using AngularJS and Web API.
Any advice on the best approach would be greatly appreciated. Thank you.