app.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. (function() {
  2. var app = angular.module('gemStore', []);
  3. app.controller('StoreController', function() {
  4. this.products = gems;
  5. });
  6. var gems = [{
  7. name: 'Azurite',
  8. description: "Some gems have hidden qualities beyond their luster, beyond their shine... Azurite is one of those gems.",
  9. shine: 8,
  10. price: 110.50,
  11. rarity: 7,
  12. color: '#CCC',
  13. faces: 14,
  14. images: [ ]
  15. }, {
  16. name: 'Bloodstone',
  17. description: "Origin of the Bloodstone is unknown, hence its low value. It has a very high shine and 12 sides, however.",
  18. shine: 9,
  19. price: 22.90,
  20. rarity: 6,
  21. color: '#EEE',
  22. faces: 12,
  23. images: [
  24. "images/gem-01.gif",
  25. "images/gem-03.gif",
  26. "images/gem-04.gif"
  27. ]
  28. }, {
  29. name: 'Zircon',
  30. description: "Zircon is our most coveted and sought after gem. You will pay much to be the proud owner of this gorgeous and high shine gem.",
  31. shine: 70,
  32. price: 1100,
  33. rarity: 2,
  34. color: '#000',
  35. faces: 6,
  36. images: [
  37. "images/gem-06.gif",
  38. "images/gem-07.gif",
  39. "images/gem-09.gif"
  40. ]
  41. }];
  42. })();