I'm struggling with a method that performs a replace operation:
replace('{findThis}', 'Replace with value');
Now, in the code snippet below:
<ul *ngFor="let item of data">
<li (click)="replace('{current}', {{item}})">{{item}}</li>
</ul>
The usage of {{item}}
as the second parameter is resulting in an error message:
Uncaught Error: Template parse errors:
Parser Error: Got interpolation ({{}}) where expression was expected.
Does anyone have any ideas on how to resolve this issue?