我正在尝试使用Angular和Ionic构建新闻订阅源应用程序。我停留在这一阶段,涉及UI路由和http请求的处理,我不知道从这里去哪里。在主页上,此应用程序显示类似这样的新闻频道列表
这些数据是从json文件中获取的,就像这样
{ "status": "ok", "sources": [ { "id": "abc-news-au", "name": "ABC News (AU)", "description": "Australia's most trusted source of local, national and world news. Comprehensive, independent, in-depth analysis, the latest business, sport, weather and more.", "url": "http://www.abc.net.au/news", "category": "general", "language": "en", "country": "au", "sortBysAvailable": [ "top" ] }, { "id": "ars-technica", "name": "Ars Technica", "description": "The PC enthusiast's resource. Power users and the tools they love, without computing religion.", "url": "http://arstechnica.com", "category": "technology", "language": "en", "country": "us", "sortBysAvailable": [ "top", "latest" ] }] }
现在我的目标是,当有人点击任何报纸时,我都应该获取来源[i] .id,并使用它来修改网址并将其传递给另一个http()。get,并使用数据将其显示在另一页上。我该怎么做 ?有什么建议?