Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var app = angular.module("LatestNews", [])
- app.controller("NewsCtrl", function($scope, $http){
- $http.get("http://pipes.yahoo.com/pipes/pipe.run?_id=DqsF_ZG72xGLbes9l7okhQ&_render=json&_callback=myCallback").
- success(function(data, status, headers, config){
- $scope.latestnews = data;
- console.log($scope.latestnews);
- }).
- error(function(data, status, headers, config){
- console.log("error");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement