1👍
✅
For dynamically accessing the property use bracket notation .Update this .
this.pageData.sucessMessages.keyToDisplayMessage
to
this.pageData.sucessMessages[keyToDisplayMessage]
Source:stackexchange.com