Skip to content

Instantly share code, notes, and snippets.

@TerryMooreII
Last active August 29, 2015 14:00
Show Gist options
  • Select an option

  • Save TerryMooreII/8c567ebc813f6fe28dde to your computer and use it in GitHub Desktop.

Select an option

Save TerryMooreII/8c567ebc813f6fe28dde to your computer and use it in GitHub Desktop.
azure-angular-service-7.js - Cardinal Solutions blog post: Azure Angular Service
angular.module('myApp')
.controller('myCtrl', function ($scope, Azureservice) {
var data = {
name:'Terry Moore',
company: 'Cardinal Solutions',
};
$scope.save = function(){
Azureservice
.insert('myAzureTable', data)
.then(function(){
console.log('Data saved successfully');
},
function(err){
console.error('Error saving data: ' + err);
});
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment