Skip to content
This repository has been archived by the owner on May 20, 2019. It is now read-only.

Does not work when template contains a { #26

Open
ssougnez opened this issue Jul 28, 2017 · 0 comments
Open

Does not work when template contains a { #26

ssougnez opened this issue Jul 28, 2017 · 0 comments

Comments

@ssougnez
Copy link

Hi,

say you retrieve content from a web service and in this content, you have "{" character. ng-dynamic will try to compile it but the compiler will think that you're trying to interpolate something and will fail. I implemented a similar component and made it work by adding this:

this.content = this.content.replace(/{/g, "{{ '{' }}");

This allows to espace the opening curly braces, and then everything works.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant