here is the html
<link rel="manifest" href="manifest.json">
<!-- un-comment this code to enable service worker
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('service-worker.js')
.then(() => console.log('service worker installed'))
.catch(err => console.log('Error', err));
}
</script>-->
<link href="lib/ionic/css/ionic.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<!-- IF using Sass (run gulp sass first), then uncomment below and remove the CSS includes above
<link href="css/ionic.app.css" rel="stylesheet">
-->
<!-- ionic/angularjs js -->
<script src="lib/ionic/js/ionic.bundle.js"></script>
<!-- cordova script (this will be a 404 during development) -->
<script src="cordova.js"></script>
<!-- your app's js -->
<script src="js/app.js"></script>
<ion-pane>
<ion-header-bar class="bar-stable">
<h1 class="title">AlSharq New App</h1>
</ion-header-bar>
<ion-content>
<div ng-repeat ="story in stories">
{{story.title}}
</div>
</ion-content>
</ion-pane>
here is app.js
(function() {
var app = angular.module(‘alsharq’, [‘ionic’]);
app.controller(‘alsharqctrl’, function($http, $scope) {
$scope.stories = [];
$http.get(‘https://rss2json.com/#rss_url=http%3A%2F%2Fwww.alsharq.net.sa%2Ffeed’)
.success(function(response) {
angular.forEach(response.object,function(child) {
console.log(child.object);
});
});
});
app.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
cordova.plugins.Keyboard.disableScroll(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
});
});
}());
here is the json link i am trying to retrieve
the above link is a json of xml file below
http://www.alsharq.net.sa/feed
please correct my java code to fetch data from the json url provided i wokring on it from last 2 day but could not figure out
Tank U in advance