| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
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's booleanAttribute transform function. Closes ionic-team#30822
|
Someone is attempting to deploy a commit to the Ionic Team on Vercel. A member of the Team first needs to authorize it. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Description
This PR implements booleanAttribute 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:
This generates IDE warnings and is more verbose than the desired syntax.
Solution
Applied Angular's booleanAttribute transform to IonItem's button, detail, and disabled inputs. This allows:
Changes
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
Closes #30822