In a previous tutorial, you learned how to create your first Angular application using the TX Text Control Document Editor.
Creating the Application
Create a basic Angular application as described in this tutorial:
Getting Started: Document Editor with Angular CLI
Add the declaration and the methods onClickSave and onClickLoad to the app.component.ts TypeScript file, so that the complete file looks like this:
Finally, add two buttons to the app.component.html with the Angular click handlers:
When executing the application, an HTML document is loaded into the editor when clicking the button Load Document and the button Save Document saves the content as an Adobe PDF document that is downloaded to the browser.