Last active
August 29, 2015 14:06
-
-
Save sivaprasadreddy/310fac5c905bde276511 to your computer and use it in GitHub Desktop.
hello-ang-home.html
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="col-md-8 col-md-offset-2"> | |
<form class="form-horizontal" role="form"> | |
<div class="form-group form-group-md"> | |
<div class="col-md-10"> | |
<input type="text" class="form-control" ng-model="newTodo.description"> | |
</div> | |
<button class="btn btn-primary" ng-click="addTodo(newTodo)">Add</button> | |
</div> | |
</form> | |
<table class="table table-striped table-bordered table-hover"> | |
<thead> | |
<tr> | |
<th width="70%">Item</th> | |
<th>Date</th> | |
<th>Delete</th> | |
</tr> | |
</thead> | |
<tbody> | |
<tr ng-repeat="todo in todos"> | |
<td>{{todo.description}}</td> | |
<td>{{todo.createdOn | date}}</td> | |
<td><button class="btn btn-danger" ng-click="deleteTodo(todo)">Delete</button></td> | |
</tr> | |
</tbody> | |
</table> | |
<br/> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment