We published new npm packages for the TX Text Control DocumentEditor and DocumentViewer with Angular 11.0 support.

We released the following packages compatible to TX Text Control .NET Server for ASP.NET X19:

Updating npm Packages

In Angular, npm is used to update packages. If you are updating from an older major version, the command update cannot be used to install the latest major version. Instead, the command install is required. The following command installs the latest release of the Angular document editor into the current project:

npm install @txtextcontrol/tx-ng-document-editor@latest

Added Strict Support

Angular 11 (since 10 experimental) allows you to create a new workspace in a strict mode. In order to be compatible with this strict mode, attribute values must be provided in a different way. For the Document Viewer, a typical component.html would look like this:

<tx-document-viewer
width = "800px"
height = "800px"
basePath = "https://backend.textcontrol.com?access-token=yourtoken"
documentData = "SGVsbG8gdGhlcmU="
dock = "Window"
[toolbarDocked] = "true"
documentPath = "test.docx"
[isSelectionActivated] = "true"
[showThumbnailPane] = "true">
</tx-document-viewer>
view raw gistfile1.html hosted with ❤ by GitHub

Learn more about our Angular components here:

TX Text Control for Angular