Beginner - subviews passing xml data?


#1

Hi,

I am creating my first app with ionic while trying to get my head around angular at the same time and I’m hoping someone can point me in the right direction.

I have created the basic structure of my app with 5 tabs. For the news tab I am pulling a custom RSS feed which includes the title, description and full content of stories from a wordpress site.

When the user clicks on a news item I would like the page to transition to another view (template?) and display the content but every example I find using routing talks about referencing by an id.

In my news-tab template I have this:

<a ng-repeat="entry in entries" class="item item-thumbnail-left" ng-click="browse(entry.link)">
  <img src="img/s1.jpg">
  <b>{{entry.title}}</b><br>
  <p ng-non-bindable>Posted on: {{entry.publishedDate}}</p>
  <span ng-bind-html="entry.contentSnippet"></span>
</a>

And my routing I have this:

.state(‘tab.news’, {
url: ‘/news’,
views: {
‘tab-news’: {
templateUrl: ‘templates/tab-news.html’,
controller: ‘NewsCtrl’
}
}
})

I would like to remove the ng-click=“browse(entry.link)” and somehow pass the entry.content into a new page.

If anyone could point me towards documentation, tutorials, examples I would be most grateful.