Good day! There is a need to use AngularJS in Twig'e. Simply put, Twig returns a string of text via {{info.txt}}. How can you check its contents with the Angular directive ng-if -> if it is not empty, output the contents.

<p class="text" ng-if="{{info.txt}}">{{info.txt}}</p> 

I would be grateful for any ideas.

  • Make it twiga. - Vyacheslav Potseluyko
  • Why such a look? I already had thoughts to switch completely to AngularJS) - Valery Orlov
  • You are confusing server and front-end technology. - Vyacheslav Potseluyko
  • Or create something wild. If the patterns - then on Angularc - Vyacheslav Potseluyko
  • Thank you, I will use Twig - Valery Orlov

0