Vue: template-tag, v-for, v-if together, not as expect

Created on 12 Apr 2016  路  1Comment  路  Source: vuejs/vue

Vue.js version

1.0.21

Reproduction Link

https://jsfiddle.net/hisland/f9gdg0d1/

Steps to reproduce

i want a condition v-for

template(v-for="a in 6" v-if="a%2")
  p {{a}}

i got 0-5, i don't want this
p 0
p 1
p 2
p 3
p 4
p 5

  template(v-for="a in 6")
    template(v-if="a%2")
      p {{a}}

this is ok
p 1
p 3
p 5

What is Expected?

can i use template(v-for="a in 6" v-if="a%2")?

bug

Most helpful comment

>All comments

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bfis picture bfis  路  3Comments

loki0609 picture loki0609  路  3Comments

seemsindie picture seemsindie  路  3Comments

franciscolourenco picture franciscolourenco  路  3Comments

robertleeplummerjr picture robertleeplummerjr  路  3Comments