We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

disable volt interpreter so I can use angularjs interpreter for {{{% endraw %{% raw %}}}}

I found out that volt is messing with my angularjs model tags.

In this question: https://stackoverflow.com/questions/13671701/angularjs-twig-conflict-with-double-curly-braces

An person says:

Another twig-specific solution for moustache madness is to use the verbatim tag; e.g:{% verbatim %}{{ angular_var }}{% endverbatim %} to preserve your moustaches for AngularJS:

How can I do this in volt?

If you look here:

https://forum.phalcon.io/discussion/811/changing-volt-expression-tags

I think you'll find the answer you need.



1.2k

AngularJS may change delimiters. You can change both start and end symbol which angularjs should convert.

AngularJS has $interpolateProvider who can do that for you. https://docs.angularjs.org/api/ng/provider/$interpolateProvider#startSymbol I have used something like that " |: .... :| ".