The is code works fine by destructuring the object and assigning the variables,
const { allowNegative, decimal, precision, prefix, suffix, thousands } = this.options;
But when i try with this
operator like below it throws an error:
{ this.tabConfig, this.searchUiConfig, this.gridUiConfig } = CONFIG;
where CONFIG being a JSON. Error being [ts] Declaration or statement expected on the assignment operator(=).
Is there a better way of doing than this:
this.tabConfig = CONFIG.tabConfig;
this.searchUiConfig = CONFIG.searchUiConfig;
this.gridUiConfig = CONFIG.gridUiConfig;