Repository navigation
Description
Prerequisites
- I have read the Contributing Guidelines.
- I agree to follow the Code of Conduct.
- I have searched for existing issues that already report this problem, without success.
Ionic Framework Version
v8.x
Current Behavior
When using the compareWith property of IonRadioGroup in a Ionic Angular Standalone components I get the following error:
NG8002: Can't bind to 'compareWith' since it isn't a known property of 'ion-radio-group'.
Quick look over the code it seems like it has only been forgotten to be added here:
To test this I quickly added the property to nodes_modules/@ionic/angular/standalone/directives/radio-group.d.ts and everything worked as expected.
Expected Behavior
The compareWith property should be available in standalone components.
Steps to Reproduce
- Create a standalone angular component
- import IonRadioGroup
- create a template like
<ion-radio-group [(ngModel)]="foomodel" [compareWith]="compareWith"> - Get compiler error.
Code Reproduction URL
Ionic Info
node@b085e8bce2dc:~/app/sen2cube-mobile$ ionic info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module '@capacitor/ios/package.json'
Require stack:
- /home/node/.npm-global/lib/node_modules/@ionic/cli/lib/project/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/lib/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/bin/ionic
[WARN] Error loading @capacitor/android package.json: Error: Cannot find module '@capacitor/android/package.json'
Require stack:
- /home/node/.npm-global/lib/node_modules/@ionic/cli/lib/project/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/lib/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/index.js
- /home/node/.npm-global/lib/node_modules/@ionic/cli/bin/ionic
Ionic:
Ionic CLI : 7.2.0 (/home/node/.npm-global/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 8.0.1
@angular-devkit/build-angular : 17.3.6
@angular-devkit/schematics : 17.3.6
@angular/cli : 17.3.6
@ionic/angular-toolkit : 11.0.1
Capacitor:
Capacitor CLI : 6.0.0
@capacitor/android : not installed
@capacitor/core : 6.0.0
@capacitor/ios : not installed
Utility:
cordova-res : 0.15.4
native-run : 2.0.1
System:
NodeJS : v20.17.0 (/usr/local/bin/node)
npm : 10.8.2
OS : Linux 6.6
Additional Information
No response
Activity
sean-perkins commentedon Sep 3, 2024
@grmpfhmbl you are correct, the property is missing from the referenced code.
Would you be interested in submitting a PR for this?
grmpfhmbl commentedon Sep 5, 2024
@sean-perkins Let me have a look into ionic's contribution docs over the weekend on how much overhead that would create on my end. I'll come back to you here. :-)
ebarooni commentedon Sep 12, 2024
Hey @sean-perkins , I have sent out a PR for this. I came across this issue recently and it was kinda needed for me.
grmpfhmbl commentedon Sep 13, 2024
Thank you! I got bogged down and forgot to submit a PR!
ebarooni commentedon Oct 22, 2024
Hi @sean-perkins could you please review the PR? I feel like its forgotten :)).
sean-perkins commentedon Oct 22, 2024
Hello @ebarooni, my review unfortunately doesn't count for much, as I'm not a CODEOWNER or a direct member of the project.
I'll try adding other members of the core team, so they can prioritize a review.
fix(angular): add missing 'compareWith' input to standalone ion-radio…
mathiasmuller4sh commentedon Oct 30, 2024
Hi is there a workaround before he PR is merged and released ? Thx
ionitron-bot commentedon Nov 29, 2024
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.