commit
d96b33fc67
|
@ -11,6 +11,7 @@ layout: default
|
||||||
<li ng-repeat="phone in phones">
|
<li ng-repeat="phone in phones">
|
||||||
{{phone.name}}
|
{{phone.name}}
|
||||||
</li>
|
</li>
|
||||||
|
</ul>
|
||||||
|
|
||||||
### Model (ng-model)
|
### Model (ng-model)
|
||||||
|
|
||||||
|
@ -44,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