Skip to content

Instantly share code, notes, and snippets.

@xcarpentier
Created February 4, 2015 14:51
Show Gist options
  • Save xcarpentier/1e5683289cd24e626341 to your computer and use it in GitHub Desktop.
Save xcarpentier/1e5683289cd24e626341 to your computer and use it in GitHub Desktop.
'use strict'
class DataService
@$inject: ['$http', '$log']
constructor: (@http, log) ->
log.debug 'DataService instance'
countries: ->
@http.get('/api/countries/')
angular.module('joyContactWebapp').service 'DataService', DataService
@codingleo
Copy link

Good code!! Tks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment