I am looking to enhance my website by adding chips with new tags in a neatly organized manner. Specifically, I want each new chip to be positioned next to the previous one and have the add-button shift to the right side, always staying in front of the last chip created. While I have already implemented the functionality for adding a new chip, I am seeking guidance on how to achieve this specific ordering and alignment. Unfortunately, I have been unable to find any tutorials or videos online that address this issue. Any advice or code examples you can provide would be greatly appreciated. My current code is displayed below.
HTML
<ion-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>
<button class="buttonIcon" ion-button small round icon-only (click)="add(chip)">
<ion-icon name="add"></ion-icon>
</button>
TS
public tagName = [
{
"tag": "#men"
},
];
add(chip: Element) {
this.tagName.push();
}