⌈⌋ ⎇ branch:  Bitrhythm


Artifact Content

Artifact 0e7c7347f0fa572bfc0e65ba6f720cb1ebe5f17b28c9273e1bb62cc8cbdd042a:



<if-child>
  <h3>Child tag</h3>
</if-child>

<if-test>

  <p>before</p>
  <p if={ flag }>COND</p>

  <p>after</p>

  <p each={ num, i in nums} if={ parent && num == parent.flag }>{ num }</p>

  <p>
    <if-child show={ flag } />
  </p>

  // this.flag = true
  var self = this

  this.nums = [1, 2, 3]

  setTimeout(function() {
    if (this.isMounted) self.update({ flag: true })
  }, 300)


</if-test>