Something went wrong. Try again.
Some angular code i wrote while following: Angular - The Complete Guide (2025 Edition)
Something went wrong. Try again.
1234567891011121314151617181920212223242526<div class="backdrop" (click)="onCancel()"></div><dialog open> <h2>Add Task</h2> <form (ngSubmit)="onSubmit()"> <p> <label for="title">Title</label> <input type="text" id="title" name="title" [(ngModel)]="enteredTitle" /> </p>
<p> <label for="summary">Summary</label> <textarea id="summary" rows="5" name="summary" [(ngModel)]="enteredSummary"></textarea> </p>
<p> <label for="due-date">Due Date</label> <input type="date" id="due-date" name="due-date" [(ngModel)]="enteredDate" /> </p>
<p class="actions"> <button type="button" (click)="onCancel()">Cancel</button> <button type="submit">Create</button> </p> </form></dialog>