Quantcast
Channel: Active questions tagged html - Stack Overflow
Viewing all articles
Browse latest Browse all 67441

set class using data source from javascript

$
0
0

i want to build a list of data source received from javascript in vue.js.

<div class="{{item.clockIn}}"></div>

where this {{item.clockIn}} return two type of value that is true and false.

.true {
content: 'IN';
color: blue;
}
.true {
content: 'OUT';
color: red;
}

but it's not working as i thought. anyone can help me with this.


Viewing all articles
Browse latest Browse all 67441

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>