Let me get straight to the point. Iam trying to use a data variable name dynamic with respect to a condition.
let nameOfDataVariable = condition ? 'a' : 'b');
this.nameOfDataVariable = true;
What iam trying to basically achieve is use the string value inbetween the 'this.' and '=true'. I have gone through a few topics but couldn't get it right. Any help would be appreciated