[Vuejs]-Execution of conditional statement (v-if and v-else)

2๐Ÿ‘

โœ…

You have a typo, Vue is defined with first letter uppercase, and you should use it this way:

new Vue({
  // ...
})

If you open the Console (F12 or ctrl+shift+i), you will see this error:

ReferenceError: vue is not defined

JavaScript is case-sensitive, you should have caution with variable names.

1๐Ÿ‘

You should define data as a function in Vue.js. Also, use Vue instead of vue.

new Vue({
        el: '#app',
        data: function() {
            return {
               rainy: false
            }
        }
    });

Leave a comment