Skip to content

Instantly share code, notes, and snippets.

@unicodeveloper
Created September 12, 2016 16:55
Show Gist options
  • Save unicodeveloper/22be21170a46bd6a0efb58294bde33d0 to your computer and use it in GitHub Desktop.
Save unicodeveloper/22be21170a46bd6a0efb58294bde33d0 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
app.controller('HomeController', ['$scope','$http','toastr','User', 'Video', function($scope, $http, toastr, User, Video) {
$scope.listVideos = function(){
Video.retrieveAll().then(function(response){
$scope.allVideos = response.data;
});
};
$scope.listVideos();
}]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment