Skip to content

Instantly share code, notes, and snippets.

@timlevett
Last active August 29, 2015 14:20
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 timlevett/03bc7eee326df2b0b255 to your computer and use it in GitHub Desktop.
Save timlevett/03bc7eee326df2b0b255 to your computer and use it in GitHub Desktop.
See revisions for steps taken
<div style='max-height : 210px; overflow-y: scroll' ng-init='lim=3'>
<loading-gif data-object='content' data-empty='isEmpty'></loading-gif>
<ul class='widget-list' style='padding : 0'>
<li ng-repeat='item in content.data.children | limitTo:lim'>
<a href='{{item.data.url}}' target='_blank'>
<p class='bold'>{{item.data.title}}<span class='right'>score: {{item.data.score}}</span></p>
<p>{{item.data.selftext}}</p>
</a>
</li>
<li class='center' ng-hide='content.data.children.length <= lim' ng-click='lim=lim+5'>
<button class='btn btn-flat center'>Load More</button>
</li>
</ul>
</div>
<a class='btn btn-default launch-app-button' href='https://www.reddit.com/r/uwmadison' target='_blank'>Launch UW subreddit</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment