Error in user.service.ts
Gaelmart opened this issue · 2 comments
Gaelmart commented
(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
jgcarmona-com commented
you could do this: .map(res => res.json())
instead of .map(res => true)
AleksiAleksiev commented
You should be using HttpClient and not Http anyway, so calling .json() is not necessary.