Created
May 6, 2020 14:16
-
-
Save bjoerntx/08b1ee840f7f58d733275612d9b98142 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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