ngx-at-chip-input
v1.0.0
Published
Easy to use Angular chip input, just plug and play
Downloads
2
Maintainers
Readme
Usage notes:
Using form control as input
chipList = new FormControl();
chipList.setValue(['test1', 'chip1', 'another chip']);
<ngx-at-chip-input placeholder="custom placeholder" [formControl]="chipList">
</ngx-at-chip-input>
Using array as input
chipArray=['Hydrogen', 'Helium', 'Lithium', 'Berilium'];
<ngx-at-chip-input
placeholder="custom placeholder"
[chipArray]="chipArray"
(chipListChange)="chipListChangeHandler($event)"
>
</ngx-at-chip-input>
Two way binding with Array
chipArray=['Hydrogen', 'Helium', 'Lithium', 'Berilium'];
<ngx-at-chip-input
placeholder="custom placeholder"
[(chipArray)]="chipArray"
>
</ngx-at-chip-input>