Day: July 11, 2015

  • Loading JSON in Angular

    First we have our JSON file so like: [{     “name”: “Azurite”,     “price”: 2.95,     “canPurchase”: true }, {     “name”: “Bloodstone”,     “price”: 5.95,     “canPurchase”: true }, {     “name”: “Zircon”,     “price”: 3.95,     “canPurchase”: false }] To use it, instead of app.controller(‘basicController’, function(){     this.products = gems;   }); where…