ng-action does not add action attribute in the form

后端 未结 5 2080
醉梦人生
醉梦人生 2020-12-18 20:09

I want to have dynamic action attribute in the form. I have a code

 

Angular d

5条回答
  •  死守一世寂寞
    2020-12-18 20:45

    You can use jQuery to change the action attribute, as the following example:

    $('#formId').attr('action', '/users/'+$scope.user.id);
    

提交回复
热议问题