Advertisement
Guest User

Untitled

a guest
Dec 18th, 2014
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. var app = angular.module("LatestNews", [])
  2. app.controller("NewsCtrl", function($scope, $http){
  3. $http.get("http://pipes.yahoo.com/pipes/pipe.run?_id=DqsF_ZG72xGLbes9l7okhQ&_render=json&_callback=myCallback").
  4. success(function(data, status, headers, config){
  5. $scope.latestnews = data;
  6. console.log($scope.latestnews);
  7. }).
  8. error(function(data, status, headers, config){
  9. console.log("error");
  10. });
  11. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement