Tuesday, April 4, 2017

Ionic 2 and Laravel API Route

I am using Ionic 2 and Laravel API routes mechanism together.

Can anyone tell me how I can get the data to pass along with the post request in Angular 2?

Here's what I have so far:

http.post('someurl.com', {title: "title goes here", body: "Body goes here"})
    .map(res => res.json())
    .subscribe(res => {
        console.log(res);
})



via Anees Kodappana

Advertisement