Skip to content

Instantly share code, notes, and snippets.

@elmarputz
Created March 8, 2017 09:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save elmarputz/ca6d9af1ecef27523de9bb690a6954f7 to your computer and use it in GitHub Desktop.
Save elmarputz/ca6d9af1ecef27523de9bb690a6954f7 to your computer and use it in GitHub Desktop.
Bookstore index.html
<!DOCTYPE html>
<html ng-app='bookstore'>
<head>
<meta charset="utf-8">
<title>Bookstore of Hannes</title>
</head>
<body>
<header>
<h1>Bookstore</h1>
</header>
<div ng-controller="BookDetailsCtrl">
<h2 ng-bind="book.title" class="bm-book-title"></h2>
<h3 ng-bind="book.subtitle" class="bm-book-subtitle"></h3>
<p>
<ul>
<li ng-bind-template="ISBN: {{ book.isbn }}"
class="bm-book-isbn"></li>
<li ng-bind-template="Seiten: {{ book.numPages }}"
class="bm-book-num-pages"></li>
<li ng-bind-template="Autor: {{ book.author }}"
class="bm-book-author"></li>
<li>
Verlag:
<a ng-bind="book.publisher.name"
ng-href="{{ book.publisher.url }}"
target="_blank"
class="bm-book-publisher-name">
</a>
</li>
</ul>
</p>
<hr>
<p ng-bind="book.abstract" class="bm-book-abstract">
</p>
</div>
<!-- Scripts -->
<script src="lib/angular/angular.js"></script>
<script src="scripts/app.js"></script>
<script src="scripts/controllers/book_details.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment