<div *ngIf="store[obj?.FundCode + obj?.PayWith].status == 'fail'">test</div>
The method above is being utilized to combine two strings in order to map an array. It functions correctly, however, when attempting to incorporate the split function as shown below, template parse errors are encountered.
<div *ngIf="store[obj?.FundCode + obj?.PayWith.split(/[ ,]+/).join('-')].status == 'fail'">test</div>
Using the split function within ngIf
like in the example above results in a template parse error within the application. Difficulty arises in properly executing and escaping the split function.