Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
Created May 2, 2014 12:45
Show Gist options
  • Save TerryMooreII/5646af03b3736e65ea92 to your computer and use it in GitHub Desktop.
Save TerryMooreII/5646af03b3736e65ea92 to your computer and use it in GitHub Desktop.
azure-angular-service-3.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('azure-mobile-service.module', [])
.service('Azureservice', function Azureservice($q) {
var API_URL = 'https://<AZURE_APP_NAME>.azure-mobile.net/';
var API_KEY = '<AZURE_APP_API_KEY>';
var MobileServiceClient = WindowsAzure.MobileServiceClient;
var client = new MobileServiceClient(API_URL, API_KEY);
var getTable = function(tableName){
return client.getTable(tableName);
};
return {
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment