Created
February 4, 2015 14:51
-
-
Save xcarpentier/1e5683289cd24e626341 to your computer and use it in GitHub Desktop.
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
'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 |
Hah ! le monde est petit ! Tu avais fait un jeu pour l'EdgeNight je crois ?
Merci pour cet exemple en tout cas, Angular est tellement plus élégant en Coffee.
Good code!! Tks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Excellent! Thanks! Made my code simpler.