View http_get.go
package main | |
import ( | |
"fmt" | |
"http" | |
"io/ioutil" | |
"os" | |
) | |
func main() { |
View app.js
var App = Ember.Application.create({ | |
}); | |
App.ThoughtsController = Ember.ArrayController.extend({ | |
init: function () { | |
var that = this; | |
setInterval(function() { | |
that.set("content", App.Thought.find({hack:"hack"})); |