M
M
Mark Maddison2019-01-11 23:57:56
Angular
Mark Maddison, 2019-01-11 23:57:56

How to build a request to the json server and get the data?

Good afternoon!
I spent two days to get user data (in json format), tell me \ help (:
The component in which there is a form, mail is entered into it, then the user data is received.
A model in which all fields are registered

export class UserData {
  constructor(
    public group: string,
    public name: string,
    public email: string,
    public password: string,
    public id?: number
  ) {}
}

And the service that performs this processing, after which it gives an answer.
Really googled a lot, nothing helps.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir, 2019-01-12
@Casufi

https://www.sitepoint.com/angular-rxjs-create-api-...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question