Skip to content

Instantly share code, notes, and snippets.

@darthwade
Last active August 29, 2015 13:59
Show Gist options
  • Save darthwade/28806783bc5189a4ec43 to your computer and use it in GitHub Desktop.
Save darthwade/28806783bc5189a4ec43 to your computer and use it in GitHub Desktop.
JS Module Template
/**
* Angular Fine Uploader
* @version 0.1.0
* @homepage https://github.com/darthwade/angular-fine-uploader
* @author Vadym Petrychenko https://github.com/darthwade
* @license The MIT License (http://www.opensource.org/licenses/mit-license.php)
* @copyright 2014 Vadym Petrychenko
*/
(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD
define(['angular'], factory);
} else if (typeof exports === 'object') {
// CommonJS
factory(require('angular'));
} else {
// Browser globals
factory(window.angular);
}
}(function (angular) {
'use strict';
angular.module('darthwade.fineUploader', [])
.provider('$fineUploader', function () {
});
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment