Skip to content

Instantly share code, notes, and snippets.

@frodosghost
Created February 19, 2016 19:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save frodosghost/6c1947f8606f4c0aa0ee to your computer and use it in GitHub Desktop.
Save frodosghost/6c1947f8606f4c0aa0ee to your computer and use it in GitHub Desktop.
AngularJS and Twig Templates
var antelopeApp = angular.module('antelopeApp', [
'ngRoute',
'antelopeControllers'
]).config(function($interpolateProvider){
$interpolateProvider.startSymbol('{[{').endSymbol('}]}');
});
<ul ng-repeat="post in posts">
<li>{[{ post.title }]}</li>
</ul>
<ul ng-repeat="post in posts">
<li>{{ '{{ post.title }}' }}</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment