Browse Source

improved examples

Maurits van der Schee 9 years ago
parent
commit
c545bb2d08
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      client_ng.html

+ 1
- 1
client_ng.html View File

@@ -6,7 +6,7 @@
6 6
 var app = angular.module('myApplication', []);
7 7
 app.controller('postController', function($scope, $http) {
8 8
     $http.post("http://localhost/api.php/posts",{user_id:1,category_id:1,content:"from angular"});
9
-    $http.get("http://localhost/api.php/posts,categories,tags,comments")
9
+    $http.get("http://localhost/api.php/posts")
10 10
     .success(function(response) { $scope.posts = php_crud_api_transform(response).posts; });
11 11
 });
12 12
 </script>

Loading…
Cancel
Save