ng-submit binds angular expression to onsubmit event, if the form does not have action attribute:

<form ng-submit="submit()">
    <input type="submit" value="Submit" />
    <button ng-click="reset()">Reset</button>


We use submit to add input-value to the list. By reset, we empty the list:


list=[]