Created
September 29, 2014 22:41
-
-
Save abelorian/8887ff60d58852c440a4 to your computer and use it in GitHub Desktop.
Vista RSS con AngularJS
This file contains 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
<!DOCTYPE html> | |
<html ng-app='feedModule'> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.min.js"></script> | |
</head> | |
<body ng-controller='FeedCtrl'> | |
<div ng-repeat="feed in feeds | orderBy:'title'"> | |
<h2><a href="{{feed.link}}" target="_blank">{{feed.title}}</a></h2> | |
<p><span ng-repeat="item in feed.entries"> | |
<a href="{{item.link}}" target="_blank">{{item.title}}</a> | |
(<span>{{item.publishedDate | date:'d-MM-yyyy HH:mm'}}</span>) | |
<br /> {{item.content}} | |
</span></p> | |
</div> | |
<script src="feeds.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment