Giter VIP home page Giter VIP logo

Comments (3)

btoone avatar btoone commented on July 17, 2024

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.

davidstanley01 avatar davidstanley01 commented on July 17, 2024

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.

asafdav avatar asafdav commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.