I received a JSON response that looks like this:
{ someText: "Order in {000} 12pm PST for early shipping"; cutofftime : "10000000" }
What is the most effective way to replace the '{000}' with the dynamic value stored in "cutofftime"? In this case, the cutofftime changes dynamically while the "someText" remains static. I am currently using Angular 12.
I attempted the following: this.orderCutOffMessage =
Order in ${{ cutofftime }} 12pm PST for early shipping
;
However, this approach did not work and it's important that both the first and last part of the this.orderCutOffMessage also come from the JSON response.