Skip to content
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
@shahata

Description

@shahata

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?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions