Created
August 21, 2015 13:05
-
-
Save gperrudin/15558705c2b02646b18b to your computer and use it in GitHub Desktop.
Ionic list not refreshed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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