Skip to content

Instantly share code, notes, and snippets.

@gperrudin
Created August 21, 2015 13:05
Show Gist options
  • Save gperrudin/15558705c2b02646b18b to your computer and use it in GitHub Desktop.
Save gperrudin/15558705c2b02646b18b to your computer and use it in GitHub Desktop.
Ionic list not refreshed
// in my controller, the function executed when a tweet is received (this works, I verified by logging the tab)
function(e) {
$scope.tweetStream.unshift(angular.fromJson(e.data))
}
// in my view
<ion-view view-title="Tweets">
<ion-content>
<div class="list">
<h2 ng-repeat="entry in tweetStream">{{entry.name}} - {{entry.location}}</h2>
</div>
</ion-content>
</ion-view>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment