angular4-testing/blog-complete/app/blog/app.component.html

26 lines
699 B
HTML

<h1>Mein Angular-Blog</h1>
<app-blog-entry *ngFor="let entry of entries" [entry]="entry" [blogComponent]="this"></app-blog-entry>
<h2>Neuen Blog-Eintrag erstellen</h2>
<div class="form">
<div class="control">
<label for="title">Titel:</label>
<input type="text" id="title" #title />
</div>
<div class="control">
<label for="title">Bild-URL:</label>
<input type="text" id="image" #image />
</div>
<div class="control">
<label for="text">Text:</label>
<textarea id="text" cols="20" rows="3" #text>
</textarea>
</div>
<div>
<button (click)="createBlogEntry(title.value, image.value, text.value)">
Blog-Eintrag anlegen
</button>
</div>
</div>