Skip to content

Instantly share code, notes, and snippets.

@beschauer
Created August 2, 2013 11:52
Show Gist options
  • Save beschauer/6139320 to your computer and use it in GitHub Desktop.
Save beschauer/6139320 to your computer and use it in GitHub Desktop.
Create a Service Framework: angular Language: CoffeeScript
angular.module('selfservice.services', [])
.factory( 'CommonRest', [ '$http', ($http) ->
{
countries : ->
promise = $http.get(baseUrl + "/stammdaten/countries")
}
])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment