On Tuesday, June 14, 2016 at 9:22:11 PM UTC+5:30, Chandrima Jain wrote:
>
> guyz
> ,i m not able to fetch data from service url if the same data i copy and
> put in js folder in data.json i m getting but putting tht url the blank
> page is coming.plz help me out.
> it is an https:\\....type url.
>
The URL contains data like
<string>{"NumberOfItemsReturned":7,"ItemLimit":7,"ListItems":[{"Title":"NewFromConsole","ID":2163,"Author":"Cathy
Kanthi,#i:0#.w|ABC\\14524,#[email protected],#,#Cathy
Kanthi,#,#SSASG,#Associate IT
Consultant","Like":null,"ReplyCount":null,"Created":"2016-06-08T19:04:23","Modified":"2016-06-08T19:04:23"},{"Title":"Trying
out the HTML","ID":2161,"Author":"Jackson
Chack,#i:0#.w|ABC\\18388,#[email protected],#,#Jackson
Chack,#,#,#","Like":"1.00,1","ReplyCount":null,"Created":"2016-05-24T16:18:30","Modified":"2016-06-02T10:18:31"},{"Title":"Disloyal","ID":2147,"Author":"Nisha
S,#i:0#.w|ABC\\16009,#[email protected],#,#Nisha S,#,#SSASG,#Associate IT
Consultant","Like":"1.000000,1","ReplyCount":1.0,"Created":"2015-07-01T17:02:19","Modified":"2016-06-10T18:40:32"}]}
</string>
-----------------------------------------------------
<doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Angular Demo</title>
<script src="lib/angular/angular.min.js"></script>
</head>
<body>
<div ng-app="myapp" ng-controller = "app">
<table border="1">
<table id = "searchResult">
<tr>
<th>Title</th>
<th>ID</th>
<th>Author</th>
</tr>
<tr ng-repeat="x in gaurav">
<td>{{x.Title}}</td>
<td>{{x.ID}}</td>
<td>{{x.Author}}</td>
</tr>
</div>
<script>
var myapp = angular.module('myapp' , []);
myapp.controller('app',function ($scope,$http){
$http.get("https://apiqa.app.abc.com/api/abcxpress/GetabcBytes/0A8DC9D50F8F4A9B8F6C43F0A63F4C7B/open%20forum/Title,ID,Author,Like,ReplyCount/")
.success(function(response)
{$scope.gaurav = response.Like;});
});
}]);
</script>
</body>
</html>
--
You received this message because you are subscribed to the Google Groups
"AngularJS" 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.