1 Star 0 Fork 0

JTR/angular-in-study

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
todo-list.component.html 677 Bytes
一键复制 编辑 原始数据 按行查看 历史
JTR 提交于 2020-11-06 17:08 +08:00 . todo-list finish
<h3>todo-list</h3>
<div class="header-bg"></div>
<section class="container">
<app-todo-input (addItem)="onAddItem($event)"></app-todo-input>
<app-todo-panel title="未完成" [list]="undoList">
<ul>
<li *ngFor="let item of undoList" (click)="toggle(item)">
{{ item.content
}}<button (click)="delete($event, item.id)">delete</button>
</li>
</ul>
</app-todo-panel>
<app-todo-panel title="已经完成" [list]="doList">
<ul>
<li *ngFor="let item of doList" (click)="toggle(item)">
{{ item.content
}}<button (click)="delete($event, item.id)">delete</button>
</li>
</ul>
</app-todo-panel>
</section>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jtr354/angular-in-study.git
git@gitee.com:jtr354/angular-in-study.git
jtr354
angular-in-study
angular-in-study
master

搜索帮助