diff --git a/components/radio/demo/radiogroup-more.ts b/components/radio/demo/radiogroup-more.ts
index dce0179ff97..e1c4a6bff7c 100644
--- a/components/radio/demo/radiogroup-more.ts
+++ b/components/radio/demo/radiogroup-more.ts
@@ -9,7 +9,9 @@ import { Component } from '@angular/core';
`,
@@ -20,6 +22,7 @@ import { Component } from '@angular/core';
height: 32px;
line-height: 32px;
}
+
input {
width: 100px;
margin-left: 10px;
diff --git a/components/radio/demo/radiogroup-options.ts b/components/radio/demo/radiogroup-options.ts
index bf66bc99028..9b73bdec1f1 100644
--- a/components/radio/demo/radiogroup-options.ts
+++ b/components/radio/demo/radiogroup-options.ts
@@ -4,13 +4,19 @@ import { Component } from '@angular/core';
selector: 'nz-demo-radio-radiogroup-options',
template: `
-
+ @for (o of options; track o.value) {
+
+ }
-
+ @for (o of options; track o.value) {
+
+ }
-
+ @for (o of options; track o.value) {
+
+ }
`
})
diff --git a/components/radio/radio.spec.ts b/components/radio/radio.spec.ts
index acb06740bac..e100a175fd4 100644
--- a/components/radio/radio.spec.ts
+++ b/components/radio/radio.spec.ts
@@ -1,6 +1,6 @@
import { BidiModule, Dir } from '@angular/cdk/bidi';
import { ApplicationRef, Component, DebugElement, ViewChild } from '@angular/core';
-import { ComponentFixture, TestBed, fakeAsync, flush, tick, waitForAsync } from '@angular/core/testing';
+import { ComponentFixture, fakeAsync, flush, TestBed, tick, waitForAsync } from '@angular/core/testing';
import { FormControl, FormsModule, ReactiveFormsModule } from '@angular/forms';
import { By } from '@angular/platform-browser';
@@ -427,6 +427,7 @@ describe('radio', () => {
});
});
});
+
@Component({
// eslint-disable-next-line
selector: 'nz-test-radio-single',
@@ -555,7 +556,9 @@ export class NzTestRadioGroupDisabledComponent {
template: `
`
@@ -584,9 +587,11 @@ export class NzTestRadioGroupSolidComponent {
@Component({
template: `
-
+ @for (item of items; track item) {
+
+ }
`
})