Created
November 9, 2015 08:59
-
-
Save daviddt/90bf4d3dd7a0d8a556cd 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
export default class ExampleService { | |
constructor($http) { | |
this.$http = $http; | |
} | |
// Example service function | |
getData () { | |
return this.$http({method: 'GET', url: './api' }); | |
} | |
} | |
ExampleService.$inject = ['$http']; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment