Seeking guidance on implementing the login function where the current component redirects to another one upon clicking the login button.
Below are my .ts and .html files:
The issue arises when using npm start for monitoring changes, as the target page (expiryPage) seems to load twice. Initially, the URL appears as:
http://localhost:3000/expiryPage?
Then, the page refreshes quickly, fixing the URL to:
http://localhost:3000/expiryPage
While this works fine with npm, running it through Google Chrome's "Web Server" results in an entry not found
error message, along with
Failed to load resource: the server responded with a status of 404 (Not Found)
.
Any insights on resolving this issue would be greatly appreciated. I've spent hours searching for a solution.
Thank you!