Skip to content

Instantly share code, notes, and snippets.

@Codercise
Created January 26, 2014 06:19

Revisions

  1. Codercise created this gist Jan 26, 2014.
    12 changes: 12 additions & 0 deletions app.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,12 @@
    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);
    });
    });