Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
import { Observable } from 'rxjs/Observable';
import { Team } from './team';
import { HttpClient } from '@angular/common/http';
export class TeamService {
constructor(private http: HttpClient) {
}
getTeams(): Observable<Team[]> {
return this.http.get<Team[]>('api/teams');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.