This quickstart tutorial shows how to use the DocumentProcessing.DocumentEditor in an Angular application.
Prerequisites
-
Create your free trial token here:
-
Install Node.js® and npm, if not done before.
-
Open a Command Prompt and install the Angular CLI globally by typing in the following command:
npm install -g @angular/cli
Creating the Project
-
Open a Command Prompt and create a new project and default app by typing in the following command:
ng new my-ds-editor-app
Follow the questions in the command prompt by answering them with "y" to add Angular routing and Enter to confirm CSS as your preferred stylesheet format.
-
Change into the created folder by typing in the following command:
cd my-ds-editor-app -
Install the DS Server DocumentEditor package by typing in the following command:
ng add @txtextcontrol/tx-ng-ds-document-editor -
Open this folder in Visual Studio Code by typing in the following command:
code . -
In Visual Studio Code, open the file src -> app -> app.component.html, add the following code and save it. Replace the oauthClientID and the oauthClientSecret values with your private trial token keys you created at the beginning of this tutorial.
-
Open the file src -> app -> app.component.ts and replace the complete file with the following code:
-
Back in the command prompt, start the Angular application by typing in the following command:
ng serve --open