This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
Interpolated expressions cannot contain }} #8642
Open
Description
This is not a big deal, since mostly you can easily work around it, but I bet many ppl are wasting a lot of time understanding why it is failing. For example: $interpolate('{{{}}}')
needs to be changed to $interpolate('{{ {} }}')
and (more realistic example) $interpolate('{{names | filter:{first:search}}}')
needs to be changed to $interpolate('{{ names | filter:{first:search} }}')
.
The only solutions for this I could come up with either involved really hackish use of try/catch or really big changes to $parse
(letting it parse a long string and tell you where the expression ended). Does anyone have an idea for an elegant solution for this?