#Need to reload component manually
12 messages · Page 1 of 1 (latest)
That sounds like a job for an Observable
so that's the only way right ?
"only" no, there are many. But Angular uses Observables, and so Observables are a thing to use in Angular.
ah okay. Thanks ^^
You should probably have an AuthService that tracks if the User is logged in using an Observable. And your AuthService probably should use an Auth library instead of trying to make your own. Unless this is for your school project or something
yes exactly it's for a school project. I am learning
g!toh @scarlet fable The tutorial apps in the Angular Guide have an example of setting up an authenticated section of your app. If you haven't already built the tutorial apps then I highly recommend that you do so because they give you an overview of some of what Angular can do and how it does it.
@scarlet fable The place we recommend starting your Angular journey is with the Tour of Heroes tutorial, located here https://angular.io/tutorial.
not really, you can use local variable using service