Use Angularjs and Twig in the same template

0

I'm trying to render a list of names using the ng-repeat directive of AngularJS. But I think there's a conflict between the Angular and Twig syntax. I tried to use the {% verbatim %}{{ angular_var }}{% endverbatim %} tag I found in a question in that link >. But when content is rendered, the tag appears as a comment:

Original HTML

    {% verbatim %}
      <ul>
        <li ng-repeat="c in clientes | orderBy:'nome'">
          {{ c.nome}} 
        </li>
      </ul>
    {% endverbatim %}

HTML when rendered

    <ul>
      <!-- ng-repeat="c in clientes | orderBy:'nome'" -->
    </ul>
    
asked by anonymous 04.06.2018 / 19:33

0 answers