factory -> service (service)
This commit is contained in:
parent
1f2adf97e1
commit
3588de317c
|
@ -45,7 +45,7 @@ layout: default
|
|||
|
||||
### Service
|
||||
|
||||
App.factory('NameService', function($http){
|
||||
App.service('NameService', function($http){
|
||||
return {
|
||||
get: function(){
|
||||
return $http.get(url);
|
||||
|
|
Loading…
Reference in New Issue