
๐จ
// todo ๋ฆฌ์คํธ ์ถ๊ฐ ๋ฐ์ญ์ ๋ฒํผ ๋ฐ ๋ฐฐ์ดํ์ธํด์ ํ๋๊ฒ ์์ด๋ ์ฐพ๋๊ฒ



@for (addtodo of todo ; track $index) {
<li>{{ addtodo.id }} | {{ addtodo.logname }}
todo: input[] = [
{
id: 0,
logname: this.inputValue,
},
];
input์ ๋ฐฐ์ด์ ๋ณ์๋ฅผ ์จ์ฃผ๋ ๊ฒ์ด์์
//์ญ์ ๋ฒํผ

Parser Error: Missing expected ) at column 12 in [remove(item:input)] in c:/Users/admin/Desktop/projects/chanyoung/todo/src/app/pages/study/study.component.html@6:19ngtsc(-995002)
study.component.ts(9, 3):ย Error occurs in the template of component StudyComponent.
Parser Error: Unexpected token ')' at column 18 in [remove(item:input)] in c:/Users/admin/Desktop/projects/chanyoung/todo/src/app/pages/study/study.component.html@6:19ngtsc(-995002)
study.component.ts(9, 3):ย Error occurs in the template of component StudyComponent.
Property 'item' does not exist on type 'StudyComponent'.ngtsc(2339)
study.component.ts(9, 3):ย Error occurs in the template of component StudyComponent.

remove(addtodo: input) {
this.todo = this.todo.filter((item) => item.id !== addtodo.id);
}
๋ ์ ๋
