Created
March 12, 2012 05:25
-
-
Save thiagopnts/2020002 to your computer and use it in GitHub Desktop.
This file contains 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
function Controller() { | |
var self = this; | |
this.infos = []; | |
var socket = io.connect(); | |
socket.on('news', function(data){ | |
self.infos.push(data); | |
}); | |
} | |
//in the view I have a ng:repeat="data in infos" but nothing happens | |
//when more data is pushed to infos array. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment