Giter Site home page Giter Site logo

Comments (5)

bvaughn avatar bvaughn commented on May 6, 2024

My guess is that your submit function isn't returning a promise. Check out the wiki section on submit functions for examples.

If this isn't the issue, please get back to me with a Plunker and I'll check it out! :)

from angular-form-for.

bvaughn avatar bvaughn commented on May 6, 2024

I guard against the case that you forgot to supply a submit function at all:

if ($attributes.submitWith) {
  promise = $scope.submitWith({data: $scope.formFor});
} else if ($scope.$service && $scope.$service.submit) {
  promise = $scope.$service.submit($scope.formFor);
} else {
  promise = $q.reject('No submit implementation provided');
}

But I don't guard against the case that your submit function forgot to return a promise. Maybe I should.

from angular-form-for.

bvaughn avatar bvaughn commented on May 6, 2024

FYI I just added more graceful handling of this situation via d3b57ce

from angular-form-for.

bvaughn avatar bvaughn commented on May 6, 2024

Going to mark this one as resolved. Reach out to me if you're still having any troubles though and I'll be happy to help!

from angular-form-for.

maded2 avatar maded2 commented on May 6, 2024

thanks you are right, my submit function don't return a promise. Thanks for putting the extra code in to guard against this.

eddie

from angular-form-for.

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.