Last active
August 29, 2015 14:00
-
-
Save TerryMooreII/8c567ebc813f6fe28dde to your computer and use it in GitHub Desktop.
azure-angular-service-7.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('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