Skip to content

Commit f0234db

Browse files
committed
Cs fixes
1 parent 6aa3f43 commit f0234db

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

examples/client_angular.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,21 @@
55
<script>
66
var app = angular.module('myApplication', []);
77
app.controller('postController', function($scope, $http) {
8-
var url = '../api.php/posts';
9-
$http.post(url,{user_id:1,category_id:1,content:"from angular"}).success(function(){
10-
$http.get(url).success(function(response){
11-
$scope.posts = php_crud_api_transform(response).posts;
12-
});
13-
});
8+
var url = '../api.php/posts';
9+
$http.post(url, {user_id: 1, category_id: 1, content: "from angular"}).success(function() {
10+
$http.get(url).success(function(response) {
11+
$scope.posts = php_crud_api_transform(response).posts;
12+
});
13+
});
1414
});
1515
</script>
1616
</head>
1717
<body>
1818
<div ng-app="myApplication" ng-controller="postController">
19-
<ul>
20-
<li ng-repeat="x in posts">{{ x.id + ', ' + x.content }}</li>
21-
</ul>
19+
<ul>
20+
<li ng-repeat="x in posts">{{ x.id + ', ' + x.content }}</li>
21+
</ul>
2222
</div>
2323
</body>
2424
</html>
25+

0 commit comments

Comments
 (0)