Skip to content
This repository has been archived by the owner on Feb 17, 2020. It is now read-only.

Directive: if

Tobe O edited this page Sep 30, 2017 · 1 revision

Similar to *ngIf in Angular, Jael supports a simple if directive. Use if to only an element if a certain condition is true:

<i if=user.locale == 'en'>
  Hello, {{ user.name }}!
</i>
<i if=user.locale == 'jp'>
  こんにちは, {{ user.name }}!
</i>
Clone this wiki locally