I am working on a project that involves submitting data to the newsfeed table. I have created two forms for this purpose - one for the controller of image path and another for the newsfeed content. My goal is to submit both forms with just one click, but they need to be submitted one after the other (not simultaneously).
<form id="form1" ng-submit="Submit();">
</form>
<form id="form2" ng-submit="newsfeed.regNewsfeed(regData);">
</form>