UNPKG

ng-flow-webpack

Version:

Ng-flow package modification for exporting as module

25 lines (23 loc) 662 B
/*global angular */ 'use strict'; /** * The main app module * @name app * @type {angular.Module} */ var app = angular.module('app', ['flow']) .config(['flowFactoryProvider', function (flowFactoryProvider) { flowFactoryProvider.defaults = { target: 'upload.php', permanentErrors: [404, 500, 501], maxChunkRetries: 1, chunkRetryInterval: 5000, simultaneousUploads: 4, singleFile: true }; flowFactoryProvider.on('catchAll', function (event) { console.log('catchAll', arguments); }); // Can be used with different implementations of Flow.js // flowFactoryProvider.factory = fustyFlowFactory; }]);