Hey, Are you sure the value you are trying to access is by using the appropriate key(Uppercase/lowercase)
I see that you are doing "event.Name" shouldn't it be "event.name" ?(I'm not too familiar with the JSON structure returned by your service). Also, see if the response for your request is a returning you a HTTP 2xx(you can see it in the browser itself). On Sat, Dec 6, 2014 at 8:00 AM, Sriram Varadarajan < [email protected]> wrote: > Here is my code: > > var myevents = angular.module('myeventsApp', []); > > myevents.controller("EventsController", function ($scope, $http) { > $http.get('http://mugh-events.azurewebsites.net/api/events/'). > success(function (data) { > $scope.events = data; > }); > }); > > <!DOCTYPE html><html><head> > <link rel="stylesheet" > href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css"> > <script > src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.9/angular.min.js"></script></head><body > ng-app="myeventsApp"> > <div ng-controller="EventsController" class="container"> > <h1>Events</h1> > <hr/> > <div ng-repeat="event in events" class="col-md-6"> > <h4>{{event.Name}}</h4> > <p>{{event.Description}}</p> > </div> > </div></body></html> > > I not getting any result.. Please suggest me.. > > > -- > 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. > -- Regards Vineeth B S -- 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.
