I’m trying to use mongo with Aurelia and having a difficult time, I’m building the todo app from the main page but now I want my data to persist through the use of a database (mongo). I’m using node as well, but for now I just want to see how it works with Aurelia. Can someone explain how I would go about using a POST method along with a click delegate?
<form action="/add_item" method="POST">
<input type="text" value="" name="listItem" value.bind="todoDescription">
<button click.delegate="addTodo()" type="submit">Add Todo</button>
</form>