Last active
August 29, 2015 14:22
-
-
Save pankajpatel/2b14bfe08faef20322df to your computer and use it in GitHub Desktop.
contacts listing template for contact store application
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> | |
<ul class="list-group contacts"> | |
<li class="list-group-item" ng-if="contacts.length <= 0"><p>No Contacts!</p></li> | |
<li class="list-group-item" ng-repeat="contact in contacts"> | |
<div class="actions pull-right"> | |
<a href="#edit/{{$index}}" class="btn btn-primary btn-xs">Edit</a> | |
<button class="btn btn-danger btn-xs" ng-click="deleteContact($index)" >Delete</button> | |
</div> | |
<div> | |
<p class="lead"><a href="#contacts/{{$index}}">{{contact.name}}</a></p> | |
<p>{{contact.email}}</p> | |
<p><small title="{{contact.location.zip}}">{{ contact.location.city + ', ' + contact.location.state }}</small></p> | |
</div> | |
</li> | |
</ul> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment