[Vuejs]-How to access constant variable inside return statement?

1👍

For dynamically accessing the property use bracket notation .Update this .

this.pageData.sucessMessages.keyToDisplayMessage

to

this.pageData.sucessMessages[keyToDisplayMessage]

Leave a comment