mmacneil/AngularASPNETCore2WebApiAuth

Error in user.service.ts

Gaelmart opened this issue · 2 comments

(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

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

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