I'm trying to do something similar to this interpolateProvider in AngularJS 2 but can not find how to do this similarly for
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
See Question&Answers more detail:osI'm trying to do something similar to this interpolateProvider in AngularJS 2 but can not find how to do this similarly for
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
See Question&Answers more detail:osYou can pass a CompilerConfig
to bootstrapModule
where you can configure a regular expression that defines what characters are used for interpolation:
var INTERPOLATION_REGEXP = /{{([sS]*?)}}/g; // default
platformBrowserDynamic().bootstrapModule(AppModule, [
{
interpolationRegexp: INTERPOLATION_REGEXP
}
]);