The simplest way is
:class="(post_id == post.id) ? 'list-item active' : 'list-item'"
so i have a class present there "list-item" and i am adding active class only if condition is true