I am new to AngularJS. I am trying simple html page with very simple AngularJS but I get blank page. Not sure why my $http.get does not return any values even though REST service is up and running.
*Index.html* -http://localhost:*8443*/ <!doctype html> <html ng-app="demo"> <head> <title>Hello AngularJS Testing7</title> <script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.3/angular.min.js"></script> <script src="hello.js"></script> </head> <body ng-controller="Hello"> <table ng-repeat="i in data"> <tr> <td>{{i.id}}. </td><td>Name: </td> <td>{{i.name}} </td><td>Email :{{i.email}} </td> <tr> <table> </body> </html> *hello.js* var app = angular.module('demo', []); app.controller('Hello', function($scope, $http){ $http.get('http://localhost:8080/demo/all').then(function(response) { $scope.data = response.data; }); }); *REST Service running on different port* http://localhost:8080/demo/all - return below results [{"id":1,"name":"First","email":"[email protected]'"}] -- You received this message because you are subscribed to the Google Groups "Angular and AngularJS discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.
