ng-s3upload icon indicating copy to clipboard operation
ng-s3upload copied to clipboard

Allow getManualOptions to be a function

Open soerface opened this issue 9 years ago • 1 comments

I would like to fetch the options on my own, but with the current implementation of getManualOptions, the object must be resolved before the directive is loaded. I thought that it would be good to fetch the object in the view, but doing this does not allow me to create the getManualOptions variable before loading the directive. Therefore, I thought it would be useful to allow getManualOptions to be a function, fetching the options when needed. If there is another way doing it without changing this code, I would also be happy about hearing about it.

@Serhioromano, you implemented the getManualOptions feature like it is now, how did you resolved the object before the directive beeing loaded?

soerface avatar Apr 02 '15 01:04 soerface

Hmmm, let's see, .... Actually I do not know :smile:

I did not need to make sure it is resolved before. All I wanted the way to pass manual options. And then everything just worked out for me.

Serhioromano avatar Apr 09 '15 23:04 Serhioromano