Get Data from URL

#1

Hello!
I’m working with an app and I want to get the data from URL to my app.
I watched many tutorials but I’m still confusing.Can anyone help me ?

#2

Can you please elaborate…

#3

import HTTPMODULE in your app.module.ts with this

import { HttpModule } from '@angular/http';

Then, inject HTTP into your component with this

public http: Http
this.http.get('YOUR_ENDPOINT_URL').subscribe((response) => {
   console.log(response);
   this.items = response;
});

Then you can put the response in the appropriate model in your view

#4

Thank You very much!!