<script src="https://unpkg.com/vue/dist/vue.js"></script>
<div id="app">
<!-- EXERCISE 1: Bind the "shapeStyles" data property to the "style" attribute.
When clicking the below shape, change the shape from round to squared or
vice versa.
HINT: Use Vue.set to manipulate the data property. Use the "border-radius"
CSS property for round corners. -->
<div class="shape" v-bind:style="shapeStyles" v-on:click="changeShape"></div>
<!-- EXERCISE 2: Add the "highlighted" class to every second row in the below
table. HINT: Use the modulus operator together with the v-for loop index. -->
<h1>Employees</h1>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th>Title</th>
<th>Company</th>
</tr>
</thead>
<tbody>
<tr v-for="(employee, loopIndex) in employees" v-bind:class="{ highlighted: loopIndex % 2 == 0 }">
<td>{{ employee.name }}</td>
<td>{{ employee.title }}</td>
<td>{{ companyName }}</td>
</tr>
</tbody>
</table>
</div>