Building a project in angular5 where I want to use [[ ]] for interpolation as start and end symbol.
Previously , Angularjs1.x has $interpolateProvider to customize these symbols, by default interpolation symbol is {{}} .
How can we achieve the same feature in angular 2+ versions ?
There is special option for Component metadata
@Component({
...
interpolation: ['[[', ']]']
})
Ref: https://angular.io/api/core/Component#interpolation
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With