The {[{project.id}]}
AngularJS variable is not interpreted by twig in the path function. This my code:
<section class="main" ng-controller="PaginationDemoCtrl">
<table class="table table-striped table-hover table-responsive">
<thead>
<tr>
<th>{% trans %}Id{% endtrans %}</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="project in filteredProjectList">
<td>
<a href="{{ path('project_show', { 'projectId': {[{project.id}]} }) }}">
{[{ project.id }]}
</a>
</td>
</tr>
</tbody>
</table>
<pagination
total-items="totalItems"
items-per-page="itemsPerPage"
ng-model="currentPage"
ng-change="pageChanged()">
</pagination>
</section>
<script>
angular.module('myModule', ['ui.bootstrap']);
angular.module('ui.bootstrap').config(function ($interpolateProvider) {
$interpolateProvider.startSymbol('{[{').endSymbol('}]}');
});
</script>
Have you got a trick to fix this problem?