Open Local Documents
To show how this works, this sample loads local documents that can be opened using a file open dialog.
Create a basic Angular application as described in this tutorial:
Creating your First Angular Application
Add the declaration and the methods onChangeLoad and onClickSave to the app.component.ts TypeScript file, so that the complete file looks like this:
Add a button and an input element to the app.component.html with the Angular click and change handlers:
When starting this Angular application, a file open dialog is opened to choose a local document that is then loaded into the document editor. When clicking the Save as PDF button, the document is saved and downloaded as an Adobe PDF document.
Try this on your own and create your first Angular application without installing any setup. Simply by downloading the npm packages.
Loading Documents on Initialization
If you want to load a document on initializing TX Text Control, please have a look at this article: