Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in user.service.ts #11

Open
Gaelmart opened this issue Sep 6, 2018 · 2 comments
Open

Error in user.service.ts #11

Gaelmart opened this issue Sep 6, 2018 · 2 comments

Comments

@Gaelmart
Copy link

Gaelmart commented Sep 6, 2018

(TS) Type 'Observable<boolean>' is not assignable to type 'Observable<UserRegistration>'.

Type 'boolean' is not assignable to type 'UserRegistration'.
(tsconfig or jsconfig project)
\src\app\shared\services\user.service.ts 42 Active

@juangcarmona
Copy link

you could do this: .map(res => res.json()) instead of .map(res => true)

@AleksiAleksiev
Copy link

You should be using HttpClient and not Http anyway, so calling .json() is not necessary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants