RSS reader


#1

I need to read RSS news from there is any ionic own way of doing or should be creating it? I thought ajax get by, but if there is any ionic own way I would like to know how to get started.

Thanks


#2

You’re going to have to get it via $http. As for parsing it, that’ll probably need a third party library for that.

https://docs.angularjs.org/api/ng/service/$http


#3

Most RSS news are xml based and not json so what you want to do is to convert the data into json data. luckily, $http.json wil do the job:
here is an RSS request
: $http.jsonp(‘http//ajax.googleapis.com/ajax/services/feed/load?v=1.0&num=50&callback=JSON_CALLBACK&q=’ + ‘THE-URL’).