The Delightful World of Vue
Vue Instance & Dynamic Data
  Unlock this challenge
Login Register

Challenge 1 / 1

Suppose we have a Vue component that looks like this:

const app = new Vue({
    el: '#app',
    template: '<span class="title">{{ title }}</span>
});

and you want to add title as a new "data" key to this component. How could we do that and set its initial value to Vue challenge!. How would you go about initializing this data?

Skip challenges and go to theNext Chapter

Turn Challenges Off?

All further challenges will be skipped automatically.
You can re-enable challenges at any time on this page or from your account page.