Calling a REST API inside Angular Js RRS feed

  • Question

  • User-952056950 posted

    Here is my code:

    var myevents = angular.module('myeventsApp', []);
    myevents.controller("EventsController", function ($scope, $http) {
        success(function (data) {
            $scope.events = data;

    <!DOCTYPE html>
      <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>
    <body ng-app="myeventsApp">
      <div ng-controller="EventsController" class="container">
        <div ng-repeat="event in events" class="col-md-6">

    I'm slowing learning ANGULAR JS.. my actual expectation is to call a SHAREPOINT REST API call inside Angular JS..
    Please help me with this..
    Friday, December 5, 2014 9:47 PM