Skip to content

Instantly share code, notes, and snippets.

@BernhardPosselt
Created March 12, 2013 21:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BernhardPosselt/5147194 to your computer and use it in GitHub Desktop.
Save BernhardPosselt/5147194 to your computer and use it in GitHub Desktop.
simplified request with the appframework
var app = angular.module('Mail', ['OC']);
app.controller('MyController', ['$scope', 'Request', function($scope, Request){
$scope.doARequest = function(){
Request.get('mail_all');
}
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment