Underscore Example

http://angularjs.org/

by ahchurch

HTML

<script src="http://code.angularjs.org/angular-1.0.1.js"></script>
<script src="http://documentcloud.github.com/underscore/underscore-min.js"></script>
<div ng-controller="MyCtrl">
    <div ng-repeat="playurl in contents">
            <pre>{{contents | json}}
            <a href="{{playurl.url}}">PLAY</a>
        </div>
</div>

JavaScript

var myApp = angular.module('myApp',[]);

//myApp.directive('myDirective', function() {});
//myApp.factory('myService', function() {});

function MyCtrl($scope) {
    var responseData = {
    "responseData": {
        "feed": {
            "feedUrl": "http://feeds.feedburner.com/stillgotgame",
            "title": "2old2play presents Still Got Game",
            "link": "http://www.2old2play.com/",
            "author": "",
            "description": "Still Got Game focuses on the gaming industry from the perspective of adult gamers.  We look at news, reviews, and inside information in the world of video games.  Each episode touches on the community, the industry, and the games that keep us coming back.",
            "type": "rss20",
            "entries": [
                {
                    "mediaGroups": [
                        {
                            "contents": [
                                {
                                    "url": "http://traffic.libsyn.com/dsmooth/Still_Got_Game_Episode_33__Coast_to_Coast.mp3",
                                    "fileSize": "35346436",
                                    "type": "audio/mpeg"
                                }
                            ]
                        }
                    ],
                    "title": "Still Got Game Ep. 33: Coast to Coast",
                    "link": "http://2old2play.com/media/still-got-game-ep-33-coast-coast/",
                    "author": "[email protected]",
                    "publishedDate": "Tue, 06 May 2014 22:05:01 -0700",
                    "contentSnippet": "DSmooth finally has his Rocket Bro back. After a multi-week hiatus for Doodirock's move to the West Coast, they boys were back ...",
                    "content": "DSmooth finally has his Rocket Bro back. After a multi-week hiatus for Doodirock's move to the West Coast, they boys were back in force this week. The duo talk gaming news and the new releases, cover a bunch of viewer...