SyntaxFix
Write A Post
Hire A Developer
Questions
<pre> <input type="text" #titleInput> <button type="submit" (click) = 'addTodo(titleInput.value)'>Add</button> </pre> { addTodo(title:string) { console.log(title); } }