O'Reilly logo

Learning Angular for .NET Developers by Rajesh Gunasundaram

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Updating the AppComponent template

The updated content of app.component.html is as illustrated in the following code snippet:

<section>     <header>         <h1>todos</h1>         <input placeholder="Add new todo" autofocus="" [(ngModel)]="newTodoText">         <button type="button" (click)="addTodo()">Add</button>     </header>     <section>         <ul>             <li *ngFor="let todo of todos">                 <input type="checkbox" (click)="toggleCompletion(todo)" [checked]="todo.completed">                 <label>{{todo.title}}</label>                 <button (click)="remove(todo)">X</button>             </li>         </ul>     </section>     <footer *ngIf="todos.length > 0">         <span><strong>{{getPending().length}}</strong> {{getPending().length == 1 ? 'item' : 'items'}} left</span>  <button *ngIf="getCompleted().length > 0" (click)="removeCompleted()">Clear ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required