This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Services */ | |
var services = angular.module('app.services', []) | |
services.factory( 'Drink', function($http) { | |
// Drink is a class which we can use for retrieving and | |
// updating data on the server | |
var Drink = function(data) { angular.extend(this, data); }; | |
// a static method to retrieve Drink by ID | |
Drink.get = function(drink) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"image":"sexonthebeach.jpg","ingredients":[{"amount":"2/3 oz.","ingredient":"Peach schnapps"},{"amount":"1 1/3 oz.","ingredient":"Vodka"},{"amount":"1 1/3 oz.","ingredient":"Cranberry juice"},{"amount":"1 1/3 oz.","ingredient":"Orange juice"}],"instructions":"Combine ingredients in a cocktail shaker with ice. Shake and strain into a highball glass filled with ice.","name":"Sex on the Beach","id":"e9ac9d445adc98c9"},{"image":"kamikaze.jpg","ingredients":[{"amount":"1 oz.","ingredient":"Triple Sec or Cointreau"},{"amount":"1 oz.","ingredient":"Vodka"},{"amount":"1 oz.","ingredient":"Lime juice"},{"amount":"1","ingredient":"Lime wedge"}],"instructions":"Shake ingredients in a cocktail shaker with ice. Strain into a cocktail glass. Garnish with a lime wedge and a stir stick.","name":"Kamikaze","id":"3495e74cf9208855"},{"image":"jagerbomb.jpg","ingredients":[{"amount":"1 shot","ingredient":"Jagermeister"},{"amount":"4 oz.","ingredient":"Red Bull"}],"instructions":"Pour Red Bull into a regular glass, then drop in |
NewerOlder