Unfortunately, this project has been discontinued.
A member of the community has suggested the following
replacement.
This replacement is not affiliated with laravel-angular.io
Angular Http
Let's build an Angular Service that consumes this endpoint
Angular Service
posts.service.ts
import { Injectable } from '@angular/core';
import { Http } from '@angular/http';
import { Observable } from 'rxjs/Observable';
import 'rxjs/add/operator/map';
@Injectable()
export class PostsService {
constructor(private http: Http) {}
getAll(): Observable {
return this.http
.get('api/posts')
.map(response => response.json());
}
}