Skip to content

Instantly share code, notes, and snippets.

@whisher
Created June 15, 2021 20:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whisher/82e4621f94573be64cd10f06fa91946f to your computer and use it in GitHub Desktop.
Save whisher/82e4621f94573be64cd10f06fa91946f to your computer and use it in GitHub Desktop.
@Injectable()
export class CmsService {
private http: HttpClient;
constructor(httpBackend: HttpBackend) {
this.http = new HttpClient(httpBackend);
}
getPages(): Observable<CmsArray> {
return this.http.get<CmsArray>(
`url/pages`
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment