Skip to content

Broken when used with custom interpolation symbols #264

@slavafomin

Description

@slavafomin

Hello!

Thank you for this great library!

However, when it's used in projects with custom interpolation symbols it's not working (Angular is throwing expression syntax exceptions).

For example, we use the following interpolation symbols to avoid conflicts with Twig templating engine which we use server-side:

  • {~ instead of {{
  • ~} instead of }}

It's not safe to rely on default interpolation symbols when developing a library, because they can be easily overridden in end-developer's project. It's better to rely on ngBind directive.

This Plunk demonstrates the issue:
https://plnkr.co/edit/NXnu2P5FLzcjYn2OjKNe?p=preview

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions