2

Add tag in angular form send value as null

<ng-select [items]="[]" [addTag]="true" [multiple]="true" bindLabel="name" bindValue="value" [(ngModel)]="applicable-to-status-codes" [closeOnSelect]="false" formControlName="applicable-to-status-codes"></ng-select>

{{formGroup.value | json }}

enter image description here enter image description here enter image description here

Naren
  • 51
  • 3

1 Answers1

0
<ng-select [items]="[]" [addTag]="true" [multiple]="true" bindLabel="name" bindValue="value" [(ngModel)]="applicable-to-status-codes" [closeOnSelect]="false" formControlName="applicable-to-status-codes"></ng-select>

You forget to add closing double quotation on bindValue="value" make sure, you are following the syntax accordingly.