A
A
Alexander Evgenievich2015-05-14 16:37:50
JavaScript
Alexander Evgenievich, 2015-05-14 16:37:50

How to use both '{{' and '{[{' brackets in the same Angular application (problem with angular plugins)?

Hello.
In an angular and twig project. For convenience, we changed '{{' to '{[{' .

module.config(function($interpolateProvider){
        $interpolateProvider.startSymbol('{[{').endSymbol('}]}');
    });

Ok, everything works. But after all, the project still uses plugins, for example, angular-datepicker, which uses '{{' in its templates, so the whole thing is not perceived by angular and "{{ date }}" is returned, etc.
How can you use both?
---
I am adding a clarification.
Their directives use such brackets {{ , while they work, but in some plugins, again angular-datepicker, they do not work.
Everything works in the example: https://jsfiddle.net/pyskbdpm/ .
As Denormalization said, the problem seems to be with the plugin. Although plugins, to be honest, inspire confidence. Again, I would like to understand why problems arise AT ALL.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
D', 2015-05-14
@banderos120

Isn't it easier to change delimiters in Twig?
stackoverflow.com/questions/25002996/symfony2-twig...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question