Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Angular nb-radio (change) not firing when change value

Tags:

angular

Nebular checkbox.component.ts not firing (change) event when the value changed.

the checkbox.component.ts should have change event

 <nb-radio
      [value]="t"
      (change)="onChange($event)"
      *ngFor="let t of tList ">{{t}}</nb-radio>
  </nb-radio-group>
like image 446
Amr Ibrahim Avatar asked Jan 31 '19 12:01

Amr Ibrahim


1 Answers

The Nebular nb-radio dosn't have (change) but it has (valueChange) check the source code here radio.component.ts#L102

<nb-radio
      [value]="t"
      (valueChange)="onChange($event)"
      *ngFor="let t of tList ">{{t}}</nb-radio>
</nb-radio-group>
like image 132
Amr Ibrahim Avatar answered Nov 20 '22 15:11

Amr Ibrahim