Hi Sander,

      I am trying to fetch data from database using webservices while
printing those data its not printing in web page My code is

index.html

<!DOCTYPE html>
<html ng-app>
<head>
<title>Hello AngularJS</title>
<script src="
https://ajax.googleapis.com/ajax/libs/angularjs/1.0.8/angular.min.js
"></script>
    <script src="hello.js"></script>
</head>

<body>
<div ng-controller="Hello">
<p>The ID is {{greeting.userId}}</p>
<p>The content is {{greeting.userName}}</p>
</div>
</body>
</html>

hello.js


function Hello($scope, $http) {
    $http.get('
http://localhost:8082/RESTJerseyExample/rest/restfultest/GetCarValues').
        success(function(data) {
            $scope.greeting = data;
        });
}


http://localhost:8082/RESTJerseyExample/rest/restfultest/GetCarValues is my
webservices where json object present


Thanks & Regards,
Bhagyasri.T.


On Wed, Feb 11, 2015 at 4:50 PM, Tripuramallu Bhagyasri <
[email protected]> wrote:

> K, I got it Thank you
>
> Regards,
> Bhagyasri.T
>
> On Wed, Feb 11, 2015 at 1:10 PM, Sander Elias <[email protected]>
> wrote:
>
>> Hi,
>>
>> When resolving things, there is not a big difference in $http.$get, and
>> $resolve, they both work using promises.
>>
>> Regards,
>> Sander
>>
>> --
>> 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 http://groups.google.com/group/angular.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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 http://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to