Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add displayed/enabled properties as alternatives to hidden/disabled in signal forms #66006

Open
@cexbrayat

Description

@cexbrayat

Which @angular/* package(s) are relevant/related to the feature request?

forms

Description

When working with signal forms, relying onhidden anddisabled properties often requires the use of!field.hidden() or!field.disabled(), which can make the logic harder to read and reason about.

Proposed solution

Add positive alternatives to the existing boolean properties:

  • displayed as the inverse ofhidden
  • enabled as the inverse ofdisabled
@if (field.displayed() && field.enabled()) {

Alternatives considered

I have a PR ready to go if the team is interested in these suggestions.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp