JSFiddle - React, Tailwind, and code Playground

by jessekinsman

JavaScript

Vue.component('test-compute', {
	props: ['collection'],
  template: `
  <div>
  	<div class="container" v-for="item in onlySmall" v-if="item.small == false">
    	<p>{{item.text}}</p>
    </div>
    </div>
  `
});

var testData = [
	{small: false, text: "Small false 1"},
  {small: true, text: "Small true 1"},
  {small: false, text: "Small false 2"},
  {small: false, text: "Small false 3"},
  {small: true, text: "Small true 2"},
  {small: false, text: "Small false 4"},
];
new Vue({el: '#compContainer', data:{testData: testData}});