Comments (3)
What does your controller look like? I had the same issue but forgot I was using the controllerAs
syntax so I just had to prefix the model.
Sorry I misread the first part of your question. I'm also wondering the best way to set the key (remote url) to a variable in the controller. Currently I have this working using a $watch
but using a $watch
in the controller isn't really the best idea. See my code below.
FYI I've asked in issue #36 if there is a better way. I think it would be ideal to have the events include the value so we could simply add a listener in the controller.
$scope.$watch('vm.url', function(nv, ov) {
console.debug(nv)
});
from ng-s3upload.
On success, the service will emit a "s3upload:success" event. Just listen for that like so:
$scope.$on('s3upload:success', function(event, response, url) {
console.log(url);
});
from ng-s3upload.
ng-model should be updated, I tried to reproduce it but couldn't.
The event should be used in order to avoid watching the value and get notified after the upload was completed.
Has any of you experienced the same issue ?
from ng-s3upload.
Related Issues (20)
- 403 forbidden HOT 1
- add main to package.json HOT 2
- bucket evaluation not working HOT 3
- Upload does not begin in Cordova
- targetFilename parameter evaluation HOT 3
- Button text should be customizable
- Direct upload to Amazon S3: corrupted files
- build/ng-s3upload.js does not correspond to version HOT 3
- Uncaught TypeError: h.match is not a function HOT 1
- directive is too awesome HOT 1
- Support Multipart upload HOT 3
- 404 error with npm install HOT 1
- Cache-Control Header
- Original filename
- What is the button Replace?
- getting 404 on boostrap templates for buttons HOT 1
- Variable Random String Length
- Allow placeholders in targetFilename
- Why we need bucket name defined in both, frontend and backend ?
- Not working. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-s3upload.