Question 11
Consider the following HTML with relevant Vue CDN link attached.
<div id="app"> <div :class="{ active: isActive, 'text-danger': hasError }"> {{ message }} </div> </div>
<script> new Vue({ el: '#app', data: { message: 'Hello!', isActive: true, hasError: false } }) </script>Given the Vue.js application above, which classes will be applied to the div containing the message?
Only 'active'
'text-danger' and 'active'
No classes
Only 'text-danger'