Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form [formGroup]="newNewsForm" novalidate>
- <md-select placeholder="Thème" formControlName="tag">
- <md-option *ngFor="let sport of [{id:'running', name:'running'}, {id: 'golf', name:'golf'}]" [value]="sport.id">
- {{sport.name}}
- </md-option>
- </md-select>
- <md-input-container class="full-width">
- <input mdInput placeholder="Titre" formControlName="title">
- </md-input-container>
- <md-input-container class="full-width">
- <textarea mdInput placeholder="Contenu" formControlName="content"></textarea>
- </md-input-container>
- </form>
- <md-card class="full-width">
- <md-card-title>{{ newNewsForm?.value?.title }}</md-card-title>
- <md-card-subtitle *ngIf="newNewsForm?.value?.tag">#{{ newNewsForm?.value?.tag }}</md-card-subtitle>
- <md-card-content>
- <p>
- {{ newNewsForm?.value?.content }}
- </p>
- </md-card-content>
- <md-card-actions></md-card-actions>
- </md-card>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement