Skip to content

docs(radio): point to correct v7 usage for comparewith #4241

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Aug 11, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```ts
import { Component } from '@angular/core';
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unfortunately necessary in order for this example to work due to ionic-team/ionic-framework#29870 not being fixed until v8

import { IonItem, IonList, IonRadio, IonRadioGroup } from '@ionic/angular/standalone';

interface Food {
Expand All @@ -13,6 +13,7 @@ interface Food {
templateUrl: 'example.component.html',
styleUrls: ['example.component.css'],
imports: [IonItem, IonList, IonRadio, IonRadioGroup],
schemas: [CUSTOM_ELEMENTS_SCHEMA]
})
export class ExampleComponent {
foods: Food[] = [
Expand Down
2 changes: 1 addition & 1 deletion versioned_docs/version-v7/api/radio.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ import LabelPlacement from '@site/static/usage/v7/radio/label-placement/index.md

By default, the radio group uses strict equality (`===`) to determine if an option is selected. This can be overridden by providing a property name or a function to the `compareWith` property.

import UsingComparewith from '@site/static/usage/v8/radio/using-comparewith/index.md';
import UsingComparewith from '@site/static/usage/v7/radio/using-comparewith/index.md';

<UsingComparewith />

Expand Down
Loading