// type button required otherwise it will submit the form <button type="button" (click)="preview();">Preview</button>