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