button inside the form submits data on click instead of the actual submit button angular code example
Example: click on button submitting the form in angular
// type button required otherwise it will submit the form
<button type="button" (click)="preview();">Preview</button>