I followed a video tutorial on angular js very carefully and it was a pleasure. yet I have one concern: how to integrate (put together) angular js and twig on the same form as both have the same syntax display
Asked
Active
Viewed 526 times
-1
-
See the link in my last comment for a few ways to do this. – Shawn Erquhart Nov 05 '14 at 15:01
1 Answers
1
There is more way to solve you problem.
Embed angular's curly braces in a twig
{% verbatim %} {% endverbatim %}
statement each time you need to use Angular. See Verbatim tag.Change interpolation of Angular e.g.
angular.module('myApp', []).config(function($interpolateProvider) { $interpolateProvider.startSymbol('{[{').endSymbol('}]}'); });
- Change twig delimiters

s7anley
- 2,408
- 22
- 17