Skip to content

Cannot read property 'subscribe' of undefined #3

Description

@amanbabbar

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions