Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created May 6, 2020 14:16
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/08b1ee840f7f58d733275612d9b98142 to your computer and use it in GitHub Desktop.
Save bjoerntx/08b1ee840f7f58d733275612d9b98142 to your computer and use it in GitHub Desktop.
async onClickMergeDocument() {
// 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