Created
May 31, 2016 09:28
-
-
Save adadgio/f6e343b19fd4a465400eca64e06fc991 to your computer and use it in GitHub Desktop.
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
Require JS controller | |
/** | |
* @namespace \bundles\UploadBundle\Controller | |
*/ | |
define(['bundles/UploadBundle/Component/Upload'], function (Upload) { | |
'use strict'; | |
return { | |
/** | |
* Controller initialization. | |
*/ | |
init: function() { | |
var target = Routing.generate('upload_document'); | |
Upload.init('upload-btn', {target: target}); | |
} | |
}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment