Haga clic en el botón Enviar el formulario en Angular
// type button required otherwise it will submit the form
<button type="button" (click)="preview();">Preview</button>
Annoyed Alligator