Skip to content

Instantly share code, notes, and snippets.

View CWSpear's full-sized avatar

Cameron Spear CWSpear

View GitHub Profile
@CWSpear
CWSpear / awesome-layout.html
Last active August 29, 2015 14:17
Handling filtering, sorting and pagination without any controller logic
<!-- "items" is the items in the full list, "displayed" is the items it'll show after filtering, sorting and paging -->
<awesome-list items="users" displayed="displayedUsers">
<div class="pre-table-header">
<!-- input for search placed here -->
<awesome-search></awesome-search>
<button class="btn btn-primary" ui-sref=".user({ id: 'new' })">Add User</button>
</div>
<table class="table">