Anil Arya
Anil Arya

Reputation: 3110

Change Interpolation symbols in angular5

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 ?

Upvotes: 5

Views: 706

Answers (1)

yurzui
yurzui

Reputation: 214047

There is special option for Component metadata

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

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

Upvotes: 8

Related Questions