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.

Weird interaction between nested forms and directives #3935

Closed
@nilpath

Description

@nilpath

Hi

I've just updated my code to use angular 1.2-rc2 and found that when using a custom directive with replace: true and that includes an ng-form, the form elements are attached to the parent form rather than the nested form.

changing the templateUrl to an inline template or setting replace: false solves this but doesn't seem right that it's not working with this particular setup as well..

heres a plunkr with 1.2-rc2
http://plnkr.co/edit/zcvaSl13HgkSiuCOiMut?p=preview

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions