generator-fountain-angular2
Version:
Yeoman Fountain generator to scaffold a webapp with Angular 2 written in ES6 (Babel), TypeScript through Webpack or SystemJS including tools Gulp 4, ESLint, Browsersync and Karma
18 lines • 540 B
HTML
<li [ngClass]="{'editing': editing, 'completed': todo?.completed}">
<fountain-todo-text-input
*ngIf="editing"
[text]="todo?.text"
[editing]="editing"
(onSave)="handleSave($event)"
></fountain-todo-text-input>
<div class="view" *ngIf="!editing">
<input
class="toggle"
type="checkbox"
[checked]="todo?.completed"
(click)="handleChange()"
/>
<label (dblclick)="handleDoubleClick()">{{todo?.text}}</label>
<button class="destroy" (click)="handleClick()"></button>
</div>
</li>