0

Here is what I have:

<div v-for="slot in card" class="panel panel-default">
<div class="panel-heading">{{ slot.name }}</div>
<div class="panel-body">
    <p v-for="wrestler in slot.wrestlers">
        {{ wrestler.team }}
        <p v-if="true">okay</p>
        {{ wrestler.team }}
    </p>
</div>

It throws a warning Error when evaluating expression "wrestler.team". The initial wrestler.team is shown and so is the word "okay", but the second wrestler.team throws that warning. Is this expected behavior?

2
  • This would be a very odd behavior indeed... Are you sure its not the next wrestler that is throwing the error because they don't have a team property set? Commented Feb 14, 2016 at 23:07
  • @Jeff I just checked by changing the bottom wrestler.team to wrestler._id and still receive the error. Logged data to console and data is showing as expected. Commented Feb 14, 2016 at 23:20

1 Answer 1

1

Don't nest <p> tags. Good post about clarification on nesting <p> tags can be found at this link.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.