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