I am new to AngularJS, i am trying to get the data using REST api url and i am trying to pass the URL to angularjs and display the data in HTML. But it shows Internal Server Error. Please find the screenshot of error and rest URL data
Here is my HTML,
<html ng-app="myApp" ng-controller="myCtrl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<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({
method: "GET",
url: "http://localhost:8080/WebApplication1/webresources/rest.employee/Show/1"
}).then(function mySucces(response) {
$scope.myWelcome = response.data;
}, function myError(response) {
$scope.myWelcome = response.statusText;
});
});
</script>
</head>
<body>
{{myWelcome}}
</body>
</html>


