Created
August 20, 2013 21:02
-
-
Save michaellujan/6287296 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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