Skip to content

Instantly share code, notes, and snippets.

@bmelton
Created April 6, 2012 15:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bmelton/2320971 to your computer and use it in GitHub Desktop.
Save bmelton/2320971 to your computer and use it in GitHub Desktop.
A Gentle Introduction to Ember - First Controller
Example.populate = Ember.ArrayController.create({
getTweets: function() {
var self = this;
var url = "http://search.twitter.com/search.json?callback=?&q=%23EmberJS";
$.getJSON(url, function(data) {
for (var i = 0; i < data.results.length; i++) {
console.log(data.results[i]);
};
})
}
});
@bmelton
Copy link
Author

bmelton commented Apr 9, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment