DEV Community

Discussion on: I want to check if a user is signed on Angular

Collapse
 
thomasosho profile image
James Osho Thomas

let's say i make a service, how then do i input my user auth from my example?
I'm sorry i'm very new to this.

Collapse
 
joellau profile image
Joel Lau

short answer:

  • move variables concerning user auth data into a service

example:

Collapse
 
joellau profile image
Joel Lau

no worries, here are some articles that will probably do a better job of explaining than I do:

Methods of passing data between components:

Using a service to pass data between components: