Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

AngularJS is Disabling Forms #9065

Closed
Closed

Description

If you create a form without an action and a controller in Angular, you will not be able to submit the form, see plunk:

http://plnkr.co/edit/gWFRMKGO3FzZtOgs4VmW?p=preview

Is this desired behaviour? If so, how do I disable it?

Activity

  1. caitp commented on Sep 15, 2014

    @caitp
    Contributor

    if action is falsy, then it will not submit the form natively. You could give it a value like action="#" or something, that would probably work.

  2. Narretz commented on Sep 15, 2014

    @Narretz
    Contributor

    There's a pull request to change that which needs some love: #3776
    Having an empty action attribute is a valid use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions