Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Last active July 10, 2020 14:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/a853aff031e351ae7c4b946551785873 to your computer and use it in GitHub Desktop.
Save bjoerntx/a853aff031e351ae7c4b946551785873 to your computer and use it in GitHub Desktop.
async mergeDocument() {
// get the saved document from TXTextControl
let postDocument: MergedDocument = {
document: await saveDocument(),
};
// post the document to endpoint 'MergeDocument'
this._http.post<MergedDocument>(this._baseUrl +
'textcontrol/mergedocument', postDocument).subscribe(result => {
// load the results into TXTextControl
loadDocument(result.document);
}, error => console.error(error));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment