Advertisement
Guest User

Untitled

a guest
Mar 20th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. <mat-list role="list">
  2. <mat-list-item *ngFor="let item of items">{{item}}:
  3.  
  4. <mat-form-field>
  5. <input matInput>
  6. </mat-form-field>
  7. <button mat-stroked-button (click)="addCookie()">Add Cookie</button>
  8.  
  9. </mat-list-item>
  10. </mat-list>
  11.  
  12. export class ListOverviewExample {
  13. items = ['item 1', 'item 2', 'item 3'];
  14.  
  15. addCookie() {
  16. console.log("here I would like to paste the value of the input field");
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement