Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- HTML:
- <Label
- [text]="teeeexxxttt"
- (tap)="setActiveBadge(3)"
- [ngClass]="{ 'active': activeBadgePositon === 3 }"
- class="badge"
- ></Label>
- TS:
- public activeBadgePositon: number = 1
- public setActiveBadge(position: number) {
- this.activeBadgePositon = position
- }
Advertisement
Add Comment
Please, Sign In to add comment