Created
May 2, 2014 12:45
-
-
Save TerryMooreII/5646af03b3736e65ea92 to your computer and use it in GitHub Desktop.
azure-angular-service-3.js - Cardinal Solutions blog post: Azure Angular Service
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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