Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
IgxRadioGroupDirective Error
posted

Hi everyone,

I have a problem when I try to use the "igx-radio-group" in my Angular App.

I followed the steps in the documentation and imported the IgxRadioModule.

Then I used the radio-buttons and the radio-group like this in my html file:

<igx-radio-group [alignment]="alignment">
  <igx-radio [(ngModel)]="selected" value="London">London</igx-radio>
  <igx-radio [(ngModel)]="selected" value="New York">New York</igx-radio>
  <igx-radio [(ngModel)]="selected" value="Tokyo">Tokyo</igx-radio>
  <igx-radio [(ngModel)]="selected" value="Sofia">Sofia</igx-radio>
</igx-radio-group>

I defined the properties "alignment" and "selected" like the following in my .ts file:

alignment: RadioGroupAlignment = RadioGroupAlignment.vertical;
selected: string | undefined;

 

If I try to start the app i shows the following error in the console:

[error] Error: projects/.../test.component.html(11,1): Directive IgxRadioGroupDirective, Property 'vertical' is private and only accessible within class 'IgxRadioGroupDirective'.

If I use the radio-group without the alignment property, it shows the same error.

Does anybody know why this error is showing up or how I can fix this error?

Thanks in advance
Regards Michael