Guest User

Untitled

a guest
Feb 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <form [formGroup]="form" novalidate>
  2.  
  3. <mat-form-field class="full-width">
  4. <mat-chip-list #chipList>
  5. <mat-chip *ngFor="let requirement of form.get('requirements').controls; let i = index;" [selectable]="selectable"
  6. [removable]="removable" (remove)="remove(i)">
  7. {{requirement.value}}
  8. <mat-icon matChipRemove *ngIf="removable">cancel</mat-icon>
  9. </mat-chip>
  10. <input placeholder="New Requirement..."
  11. [matChipInputFor]="chipList"
  12. [matChipInputSeparatorKeyCodes]="separatorKeysCodes"
  13. [matChipInputAddOnBlur]="addOnBlur"
  14. (matChipInputTokenEnd)="add($event)" />
  15. </mat-chip-list>
  16. </mat-form-field>
  17.  
  18.  
  19. <pre>{{form.value | json}}</pre>
  20.  
  21. </form>
Add Comment
Please, Sign In to add comment