4 ms·
That gets messy fast though. You start having to escape strings in your code, and potentially have a trickier time with autocompletion etc.
by MattRix 8y ago
That gets messy fast though. You start having to escape strings in your code, and potentially have a trickier time with autocompletion etc.
- kangoo1707 8y agothen write a method for it. Instead of v-if="currentUser && currentUser.id && ..." you can just write v-if="canDoStuff(currentUser)"