Answer the question
In order to leave comments, you need to log in
How to make friends between Angular and Twig?
In angular, you can use the following construction {{custom()}} - a construction that indicates the place of data binding in HTML. AngulatJS will automatically update this location if the function returns a different value than the previous one. But in Twig, functions are also designated this way and they are processed when the template is compiled. As a result, when compiling, a TWIG error occurs that this function is not found if it is used in Angular ..
How to be?
Answer the question
In order to leave comments, you need to log in
You can replace brackets in angularJs with "{{" and "}}" for example with "" with: - would be like this for angular.
app.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('');
});
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question