AngularJS Flickr Components
A collection of 1.5.x AngularJS Flickr components written in TypeScript.
Usage
-
Declare a dependency on the
amo.flickr
module:angular.module('myModule', ['amo.flickr']);
-
After requesting a Flickr API key, inject the
amoFlickrConfiguration
provider into your module's run block for configuration:angular .module('myModule') .config(function(amoFlickrConfigurationProvider) { amoFlickrConfigurationProvider .setApiKey('ABC123') .setThumbnailSize(100); // Default });
-
Add the
amoFlickrAlbumList
directive to your application's template:<amo-flickr-album-list user-id="91374488@N07"></amo-flickr-album-list>
or include the lower-level
amoFlickrAlbum
directive:<amo-flickr-album album-id="72157655559181846" user-id="91374488@N07"> </amo-flickr-album>
Development
Dependencies are managed via npm:
npm install gulp -g npm install
The project is built via gulp.js:
gulp all
and can be accessed via a local webserver:
gulp serve