I am trying to create a data source list using JavaScript in vue.js
<div class="{{item.clockIn}}"></div>
The value returned by {{item.clockIn}}
can be either true
or false
.
.true {
content: 'IN';
color: blue;
}
.true {
content: 'OUT';
color: red;
}
Unfortunately, this isn't functioning as expected. Would appreciate any assistance with this issue.