|
@@ -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>
|