Skip to content

Instantly share code, notes, and snippets.

@michaellujan
Created August 20, 2013 21:02
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 michaellujan/6287296 to your computer and use it in GitHub Desktop.
Save michaellujan/6287296 to your computer and use it in GitHub Desktop.
function defineStream($scope, result) {
$scope.streams = result;
_.each($scope.streams, function(resource, idx){
$scope.streams[idx].object.then(function(data){
data['provider_name'] = 'Clear Channel';
data['primary_market_name'] = 'New York';
data['primary_genre_name'] = 'Top 40';
$scope.streams[idx].info = data;
})
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment