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

feat(angular): add booleanAttribute transform to IonItem inputs#30825

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Advikkhandelwal wants to merge1 commit intoionic-team:main
base:main
Choose a base branch
Loading
fromAdvikkhandelwal:feat/angular-boolean-attributes

Conversation

@Advikkhandelwal
Copy link

Description

This PR implementsbooleanAttribute transforms for IonItem's boolean inputs, allowing cleaner syntax as requested in#30822.

Problem

Currently, Angular developers have to use explicit bindings for boolean attributes:

<ion-item[button]="true"[detail]="true"[disabled]="false"></ion-item>

This generates IDE warnings and is more verbose than the desired syntax.

Solution

Applied Angular'sbooleanAttribute transform to IonItem'sbutton,detail, anddisabled inputs. This allows:

<!-- Static boolean attributes --><ion-itembuttondetail></ion-item><!-- Dynamic bindings still work --><ion-item[button]="someCondition"detail></ion-item>

Changes

  • Updated@stencil/angular-output-target from^0.10.0 to^1.1.1
  • ModifiedIonItem component in both regular and standalone Angular proxies
  • Removedbutton,detail, anddisabled from@ProxyCmp and@Component inputs arrays
  • Added explicit@Input({ transform: booleanAttribute }) decorators with getters/setters
  • Added utility script for future automated application

Testing

✅ Core package builds successfully
✅ Angular package builds successfully
✅ Standalone package builds successfully
✅ All linting checks pass
✅ TypeScript compilation without errors
✅ No breaking changes to existing API

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Enhancement (non-breaking change which improves existing functionality)

Closes#30822

theo-staizen reacted with thumbs up emoji
This change allows using boolean attributes like <ion-item button detail>instead of requiring explicit bindings like <ion-item [button]="true" [detail]="true">.Applied to IonItem's button, detail, and disabled inputs using Angular'sbooleanAttribute transform function.Closesionic-team#30822
@vercel
Copy link

vercelbot commentedDec 1, 2025

Someone is attempting to deploy a commit to theIonic Team onVercel.

A member of the Team first needs toauthorize it.

@github-actionsgithub-actionsbot added package: core@ionic/core package package: angular@ionic/angular package labelsDec 1, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@OS-jacobbellOS-jacobbellAwaiting requested review from OS-jacobbellOS-jacobbell is a code owner automatically assigned from ionic-team/framework

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

package: angular@ionic/angular packagepackage: core@ionic/core package

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

feat: Angular - make certain inputsbooleanAttributes

1 participant

@Advikkhandelwal

[8]ページ先頭

©2009-2025 Movatter.jp