Search Posts

Category: twig

Twig condition inside AngularJS

Here is what I have: <p ng-class=”{‘hidden’: basketDatas.basket.infoDateRealis === undefined || basketDatas.basket.infoDateRealis == ” }”> Visit date: <br/> {[{basketDatas.basket.dateBasket}]}<br/> {[{basketDatas.basket.infoDateRealis}]} </p> I would like to print dateBasket only if infoDateRealis is empty. Source: AngularJS