Created
March 15, 2024 15:38
-
-
Save bjoerntx/62d988642ff8ad0f85f47c4a6b380136 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
@HostListener('document:txDocumentEditorLoaded', ['$event']) | |
onTxDocumentEditorLoaded() { | |
// wait until TXTextControl has been loaded | |
TXTextControl.addEventListener("textControlLoaded", () => { | |
TXTextControl.loadJsonData(this.mailMergeData.json); | |
}); | |
} | |
ngOnInit() { | |
this.getJsonData(); | |
} | |
getJsonData() { | |
this.http.get<MailMergeData>('/mailmerge/getjsondata').subscribe( | |
(result) => { | |
this.mailMergeData = result; | |
} | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment