Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

Default chip templates break after using interpolateProvider.startSymbol #2958

@rkennedy

Description

@rkennedy

If I change Angular's interpolation symbols to something other than the default {{ and }}, then chips using the default template aren't displayed correctly. Instead of showing the chip label, the chip appears with the literal text {{$chip}}.

This seems to be a recurrence of issue #877.

For example, I have changed the symbols in my angular.config function:

$interpolateProvider.startSymbol('{[{').endSymbol('}]}');

To work around the problem, I provide a custom chip template inside each use of md-chips, even though it's the same as the default, modulo the interpolation symbols:

<md-chips ng-model="...">
  <md-chip-template><span>{[{ $chip }]}</span></md-chip-template>
</md-chips>

Metadata

Metadata

Assignees

Labels

pr: merge readyThis PR is ready for a caretaker to review

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions