Skip to content

Instantly share code, notes, and snippets.

@vseventer
Created January 9, 2014 21:43
Show Gist options
  • Save vseventer/8342598 to your computer and use it in GitHub Desktop.
Save vseventer/8342598 to your computer and use it in GitHub Desktop.
The new, easy way of defining an AngularJS controller which uses $kinvey.
app.controller('DataCtrl', ['$scope', '$kinvey', function($scope, $kinvey) {
$kinvey.DataStore.get('collection-name', 'entity-id').then(function(entity) {
$scope.entity = entity;
});
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment