Thursday 15 March 2012

php - how to use angular js and twig together -



php - how to use angular js and twig together -

this question has reply here:

angularjs-twig conflict double curly braces 11 answers

i followed video tutorial on angular js , pleasure. yet have 1 concern: how integrate (put together) angular js , twig on same form both have same syntax display

there more way solve problem.

embed angular's curly braces in twig {% verbatim %} {% endverbatim %} statement each time need utilize angular. see verbatim tag.

change interpolation of angular e.g.

angular.module('myapp', []).config(function($interpolateprovider) { $interpolateprovider.startsymbol('{[{').endsymbol('}]}'); }); change twig delimiters

php angularjs symfony2 twig

No comments:

Post a Comment