I have a page, where you can create chips. I want that every chip has a different, random color, taken , from the colors in variables.scss . How can I do this?
<ion-chip color="viewable" class="chip" #chip *ngFor="let tag of tagName">
<ion-label>{{tag.tag}}</ion-label>
<button ion-button clear color="dark" (click)="remove(chip)">
<ion-icon name="close-circle"></ion-icon>
</button>
</ion-chip>
<ion-chip color="primary">
<button ion-button clear color="light" (click)="add(chip)">
<ion-icon name="add"></ion-icon>
</button>
</ion-chip>
remove(chip: Element) {
chip.remove();
}
add(chip: Element) {
this.tagName.push({"tag":"#men"});
}