Created
September 2, 2019 00:29
-
-
Save dottedsquirrel/3b0d35ec04a69238546adf0f75effd24 to your computer and use it in GitHub Desktop.
Dotted Squirrel v2 Feeds Loop
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
<div class="feedSection col l12 s12" *ngFor="let item of feed"> | |
<h3>{{item.details.publication}}</h3> | |
<div class="featured col l6 s12"> | |
<p class="date">{{item.items[0].pubDate | date:'dd MMM'}}</p> | |
<a href="{{item.items[0].link}}">{{item.items[0].title}}</a> | |
</div> | |
<div class="col l6 s12"> | |
<ul> | |
<li *ngFor="let single of item.items |slice: 1:10"> | |
<a href="{{single.link}}">{{single.title}}</a> | |
</li> | |
</ul> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment