Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <mat-form-field>
- <mat-chip-list #hashtagChipList>
- <mat-chip *ngFor="let hashtag of addedHashtags" [removable]="true"
- (remove)="removeHashtag(hashtag)">
- #{{hashtag}}
- <mat-icon matChipRemove svgIcon="cancel"></mat-icon>
- </mat-chip>
- <input matInput placeholder="Хештеги" [matAutocomplete]="hashtagAutocomplete"
- [matChipInputFor]="hashtagChipList"
- [matChipInputSeparatorKeyCodes]="separatorKeyCodes"
- [matChipInputAddOnBlur]="true"
- (matChipInputTokenEnd)="addHashtagByChipInput($event)"
- (keyup)="filterHashtagList($event)">
- <mat-autocomplete autoActiveFirstOption #hashtagAutocomplete
- [displayWith]="addHashtagByAutocomplete.bind(this)">
- <mat-option *ngFor="let hashtag of filteredHashtagList" [value]="hashtag">
- {{hashtag}}
- </mat-option>
- </mat-autocomplete>
- </mat-chip-list>
- </mat-form-field>
Add Comment
Please, Sign In to add comment