<html>
<head>
	<meta http-equiv="Content-Type" 
		content="text/html; charset=UTF-8"/>
	<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
	<script>
	var app = angular.module('myApp', []);
	app.controller('myCtrl', function($scope, $http) {
			$http
				.get("http://www.godoro.com/front-end/CategoryList.php")
				.then(function (response) {
					$scope.categories = response.data.categories;
			});
	});
	</script>
</head>
<body>
	
	<h1> AJAX Yükle </h1>
	
	<div ng-app="myApp" ng-controller="myCtrl">
	
		<table border="1">
			<tr>	
				<th>KATEGORİ KİM</th>
				<th>KATEGORİ ADI</th>
				<th>KATEGORİ ÖZET</th>
			</tr>
			<tr ng-repeat="category in categories">
				<td>{{ category.categoryId }}</td>
				<td>{{ category.categoryName }}</td>
				<td>{{ category.categoryAbstract }}</td>
			</tr>
		</table>
	</div>
</body>
</html>
				
				Dosyayı İndir