Created
September 12, 2016 16:55
-
-
Save unicodeveloper/22be21170a46bd6a0efb58294bde33d0 to your computer and use it in GitHub Desktop.
Cloudinary Blog Post - Part 1
This file contains 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
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