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

Default chip templates break after using interpolateProvider.startSymbol #2958

Closed
rkennedy opened this issue May 22, 2015 · 3 comments
Closed
Assignees
Labels
pr: merge ready This PR is ready for a caretaker to review
Milestone

Comments

@rkennedy
Copy link

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>
@ThomasBurleson ThomasBurleson modified the milestone: 0.10.0 May 27, 2015
@robertmesserle robertmesserle modified the milestones: 0.11.0, 0.10.0 Jun 16, 2015
@websirnik
Copy link

+1. Placeholders also have hardcoded interpolation.
screen shot 2015-06-18 at 19 46 31

@julbr
Copy link

julbr commented Jun 30, 2015

Same issue for md-highlight-text

@GautierT
Copy link

+1 for placeholders

@topherfangio topherfangio added the pr: merge ready This PR is ready for a caretaker to review label Aug 12, 2015
topherfangio added a commit that referenced this issue Aug 12, 2015
Refactor to pull template processing out of $interimElement
and into $mdUtil.

Fix chips to enable custom start/end symbols.

fixes #2958
topherfangio added a commit that referenced this issue Aug 13, 2015
Refactor to pull template processing out of $interimElement
and into $mdUtil.

Fix chips to enable custom start/end symbols.

fixes #2958
kennethcachia pushed a commit to kennethcachia/material that referenced this issue Sep 23, 2015
Refactor to pull template processing out of $interimElement
and into $mdUtil.

*  Enable custom start/end symbols within Chips

Fixes angular#2958. Closes angular#4136.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pr: merge ready This PR is ready for a caretaker to review
Projects
None yet
Development

No branches or pull requests

8 participants