Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
hello-ang-home.html
<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">&nbsp;
</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
You can’t perform that action at this time.