Resetting form after submit in Angularjs

后端 未结 5 1225
情话喂你
情话喂你 2020-11-29 07:57

Hi I have a form which does update on button click.

 $scope.action = \"Update\";
  var id = $routeParams.editId;
  scope.item = updateRecord.get({ id: id })         


        
5条回答
  •  清酒与你
    2020-11-29 08:33

    I dont get the question, but maybe, you can clean the form in the Html component:

    function: ngSubmit(), send the data. taskName is the name of the field, also taskBody.

提交回复
热议问题