Skip to content

Instantly share code, notes, and snippets.

@ecmelkytz
Last active August 29, 2015 14:27
Show Gist options
  • Save ecmelkytz/97aeebbad8dbd67edc7c to your computer and use it in GitHub Desktop.
Save ecmelkytz/97aeebbad8dbd67edc7c to your computer and use it in GitHub Desktop.
<div class="row" ng-controller="ExpoCtrl">
<div class="col-md-6 col-md-offset-3">
<center><h1>Books</h1></center>
<form class="form-horizontal" ng-submit="addBook()">
<div class="input-group">
<input type="text" class="form-control" ng-model="book_title">
<span class="input-group-btn">
<input type="submit" class="btn btn-default" value="Ekle">
</span>
</div>
</form>
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Başlık</th>
<th>Like</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="book in books">
<td>{{book.title}}</td>
<td>{{book.like}}</td>
</tr>
</tbody>
</table>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment