Advertisement
Guest User

Untitled

a guest
Jul 21st, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.00 KB | None | 0 0
  1. <form [formGroup]="newNewsForm" novalidate>
  2. <md-select placeholder="Thème" formControlName="tag">
  3. <md-option *ngFor="let sport of [{id:'running', name:'running'}, {id: 'golf', name:'golf'}]" [value]="sport.id">
  4. {{sport.name}}
  5. </md-option>
  6. </md-select>
  7.  
  8. <md-input-container class="full-width">
  9. <input mdInput placeholder="Titre" formControlName="title">
  10. </md-input-container>
  11.  
  12. <md-input-container class="full-width">
  13. <textarea mdInput placeholder="Contenu" formControlName="content"></textarea>
  14. </md-input-container>
  15. </form>
  16.  
  17. <md-card class="full-width">
  18.  
  19. <md-card-title>{{ newNewsForm?.value?.title }}</md-card-title>
  20. <md-card-subtitle *ngIf="newNewsForm?.value?.tag">#{{ newNewsForm?.value?.tag }}</md-card-subtitle>
  21. <md-card-content>
  22. <p>
  23. {{ newNewsForm?.value?.content }}
  24. </p>
  25. </md-card-content>
  26.  
  27. <md-card-actions></md-card-actions>
  28.  
  29. </md-card>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement