ngImgur
- Heroku: http://ng-imgur.herokuapp.com/
- Bower:
bower install ng-imgur
Getting Started
With ngImgur
you can easily add a component on your website to facilitate the uploading of wonderful cat pictures to Imgur.com r/cats. Meow!
Add the ngImgur
module as a dependency to your application:
$angular;
And then import the service into any of your controllers, services, or directives:
myApp;
Then with your image (see FileReader
) invoke the imgur.upload
method:
imgur;
Using the upload
method you can also upload an array of images – everything remains the same except the argument passed into then
which would be a collection of the models.
imgur;
Tests
All of the ngImgur
tests can be run using Karma with the easiest method being the grunt test
command after you've installed all Bower dependencies with bower install
.