Skip to content

Issue in auth.service.ts  #14

@ghost

Description

registerUser(user) {
return this.http.post(this.domain + 'authentication/register', user).map(res => res.json());
}
// and others

i got some error in .map(res => res.json());

ERROR in src/app/services/auth.service.ts:22:74 - error TS2339: Property 'map' does not exist on type 'Observable'.

22 return this.http.post(this.domain +'/authentication/register',user ).map(res => res.json());

(https://user-images.githubusercontent.com/43374749/80504269-7bed9b80-89a5-11ea-8bd5-1e84d514b25b.png

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