5

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 ?

Anil Arya
  • 3,100
  • 7
  • 43
  • 69

1 Answers1

8

There is special option for Component metadata

@Component({
  ...
  interpolation: ['[[', ']]']
})

Ref: https://angular.io/api/core/Component#interpolation

Anand Raja
  • 2,676
  • 1
  • 30
  • 35
yurzui
  • 205,937
  • 32
  • 433
  • 399