Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created January 26, 2014 06:19
Show Gist options
  • Save Codercise/8629263 to your computer and use it in GitHub Desktop.
Save Codercise/8629263 to your computer and use it in GitHub Desktop.
var viewfulApp = angular.module('viewfulApp', []);
viewfulApp.controller('viewfulController', function($scope, $http) {
$scope.myValue = "hello";
console.log('ello');
var url = "http://en.wikipedia.org/w/api.php?format=json&callback=?&action=query&titles=Berlin&prop=revisions&rvprop=content";
$http.get(url).success(function (data) {
$scope.myTextValue = "hello world";
console.log(data);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment