index.html 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. <!DOCTYPE html>
  2. <html ng-app="gemStore">
  3. <head lang="en">
  4. <meta charset="UTF-8">
  5. <title>AngularJS Store</title>
  6. <link rel="stylesheet"
  7. type="text/css"
  8. href="../bootstrap/dist/css/bootstrap.min.css"/>
  9. <link rel="stylesheet" type="text/css" href="app.css"/>
  10. <script type="text/javascript" src="../angular/angular.min.js"></script>
  11. <script type="text/javascript" src="app.js"></script>
  12. </head>
  13. <body ng-controller="StoreController as store">
  14. <!-- Products Container -->
  15. <div class="list-group" ng-hide="store.product.soldOut">
  16. <!-- Product container -->
  17. <div class="list-group-item" ng-repeat="product in store.products">
  18. <h3 product-title></h3>
  19. <product-panels></product-panels>
  20. <!-- Image Gallery -->
  21. <div class="gallery" ng-show="product.images.length">
  22. <img class="img img-circle img-thumbnail center-block"
  23. ng-src="{{product.images[0]}}"/>
  24. <ul class="clearfix">
  25. <li class="small-image pull-left thumbnail"
  26. ng-repeat="image in product.images"><img ng-src="{{image}}"/></li>
  27. </ul>
  28. </div>
  29. </div>
  30. </div>
  31. </body>
  32. </html>