I've put together a quick example that should give you a good hint as to where to start from: Working demo
This works by using two-way data binding on the input field to keep track of what the user typed in the form. When the add
button is then pressed, the table is updated with a new element dynamically created with the input content.