Hi asonWatmore
I would say thank you for this good project, by following the best practices ๐ฅ
I would ask you if I would work in MR to make project migration to latest angular version with some small changes in code (applying safe operator , unsubscribing from observables inside components,)
I don't have login component. I just have an app component and authentication service with the same code which you have written. but I am getting an error in app component in constructor this.authService.currentUser.subscribe(x => (this.currentUser = x));
i also used this.authService.currentUserValue().subscribe(x => (this.currentUser = x)); but getting the same error
I have downloaded, extract and then open the project in visual studio code.
When I run the project with command: ng serve
Below Error comes:
The serve command requires to be run in an Angular project, but a project definition could not be found.
I can create new angular project in separate VS Code solution and can build, run angular application and can see output in browser.
How to run and see login functionality in browser. Assist me
After i have added angular to the project, i used "ng new" and moved the files over without overwriting any files, i try to add a new component with "ng g c component-name" and add the component to routes, but after that the webpage is stuck at "loading...".
When i remove the routing the page works again.
Since you store this in local storage with a json object
You can easily push to the localstorage via the browsers included Javascript console:
by using: localStorage.setItem("currentUser": "object")
This might be something to look into. ^^