Check out this video,
https://www.youtube.com/watch?v=IRelx4-ISbs
In the code, you'll notice a line that says:
$scope.twitterResult = $scope.twitter.get({q:$scope.searchTerm});
It seems strange: the 'get' method of 'twitter' is clearly an asynchronous function, so how is it able to assign a value to $scope.twitterResult???
Here's the jsFiddle(No longer functional due to changes in the twitter API):