mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-16 07:30:12 +01:00
13 lines
355 B
TypeScript
13 lines
355 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { HttpClient } from '@angular/common/http';
|
|
import { Observable } from 'rxjs';
|
|
|
|
@Injectable()
|
|
export class NgxArticleService {
|
|
|
|
constructor(private http: HttpClient) { }
|
|
|
|
getArticle(source: string): Observable<string> {
|
|
return this.http.get(`articles/${source}`, { responseType: 'text' });
|
|
}
|
|
}
|