danny620
8 months ago
30
7
Vue

Vue.js handling if status == 1 | status == 2 | status = 3

Posted 8 months ago by danny620

I'm new to vue.js, I've got a api that outputs a list of tasks like

title = This is a task

desc = this is a more detailed desc

completed = false

due = date

status = 1 | 2 | 3 these translate to 1 = Not Started, 2 = In Progress, 3 = Stuck On Task

created_at

What would be the best way to translate these into human-readable meaning words and also apply a class depending on which it is?

Thanks in advance.

Please sign in or create an account to participate in this conversation.