Angular Form Not Working In A Table January 04, 2024 Post a Comment I created a working form placed in a div below a table; ng-submit directive, you should submit a form via button only.Html<trng-form="myForm"><td>Add an item</td><td><inputtype="text"name="name"id="newName"class="form-control"placeholder="Name"requiredng-model="controller.add.name"></td><td><textareaname="description"id="newDescription"class="form-control"placeholder="Description"ng-model="controller.add.description"></textarea></td><td><buttonclass="btn btn-xs btn-primary"type="button"ng-click="controller.add.save()">Add</button></td></tr>CopyFor more detailed answer about structuring of table, you could refer this answer Share You may like these postsHow To Send Values From Html Form To Mail In Table PhpSelecting And Displaying The Count Of Rows With The Same Value In A TableLinking Html Table With Mysql TableAngularjs Error: Template For Directive 'xxxxxx' Must Have Exactly One Root Element Post a Comment for "Angular Form Not Working In A Table"
Post a Comment for "Angular Form Not Working In A Table"