dev-kit/src/interpolate/interpolate.pipe.ts
Replaces placeholders in the given template string with corresponding values from the args object.
Placeholders are defined using curly braces, e.g., {placeholder}.
<span>{{ "Hello, {name}! You have {count} new messages." | interpolate: { name: "Alice", count: 5 } }}</span>import { InterpolatePipe } from '@talenra/components/dev-kit';| Name | interpolate |
| transform | |||||||||
transform(template: string, args: Record
|
|||||||||
|
Parameters :
Returns :
unknown
|