Answer the question
In order to leave comments, you need to log in
Why can't I get rss via http.get?
Can't get service rss via service:
import { HttpClient, HttpHeaders } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { rssAPI } from '../../app.constants';
@Injectable()
export class RSSService {
constructor(
private http: HttpClient,
) {}
public getRSS(): Observable<any> {
return this.http.get('https://www.presseportal.de/rss/bau-immobilien.rss2');
}
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question