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.

forms and ng-forms under ng-if directives do not get named field on $scope. #10944

@RobiFerentz

Description

@RobiFerentz

Not sure if this is intentional or not, but I have plenty of use cases where I need to create an entire form dynamically including the surrounding form or ng-form element/directive.
When I use ng-hide/ng-show, the $scope gets the usual 'nameoftheform' property on it.
That is however not the case when using ng-if.
In some cases, I MUST use ng-if so that the form (usually a nested ng-form) needs to be removed from the validation when it's not in view.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions