I follow angular.js tutorial
I add list feature in object array and make form to add it.. I search and finally get how to add new feature to object but I don't know how to reset the form
this is the code.. http://plnkr.co/edit/O2xmL5
thanks
I follow angular.js tutorial I add list feature in object array and make form to add it.. I search and finally get how to add new feature to object but I don't know how to reset the form this is the code.. http://plnkr.co/edit/O2xmL5 thanks |
|||
|
The problem is that you've created this variable but it's not necessarily tied to your scope... in fact, I'm not exactly sure where it's bound... perhaps Either way, I would recommend binding the HTML:
JavaScript:
I've implemented it here: http://plnkr.co/edit/wWwj4F |
|||||||||
|