Check to show a header:

My Header

The header's sj-if attribute is set to true when the checkbox is checked.

<div sj-app="">
  <form>
    Check to show a header:
    <input type="checkbox" sj-model="this.myVar">
  </form>
  <h1 sj-if="this.myVar">My Header</h1>
</div>

back to index