Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
14 lines (12 sloc) 350 Bytes
import { Injectable } from "@angular/core";
import { HttpClient } from "@angular/common/http";
import { Observable } from "rxjs";
@Injectable({
providedIn: "root"
})
export class TodoService {
constructor(private http: HttpClient) {}
getTodos(): Observable<any> {
return this.http.get("https://jsonplaceholder.typicode.com/todos");
}
}
You can’t perform that action at this time.