sharath-mohan / vue-course

my vue learning course

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Vue course

Chapter 1

Vue.createApp({

}).mount('#app')

Chapter 2

  1. Interpolation
Vue.createApp({
 data:()=>{
     return{
         msg: "hello"
     }
 }
}).mount('#app')
<p>{{ msg }}</p>
  1. property binding
Vue.createApp({
 data:()=>{
     return{
         imgurl: "https://google.com/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png"",
     }
 }
}).mount('#app')
<img v-bind:src="imgurl" />
  1. event binding
Vue.createApp({
    methods:{
        onclick: function(){
            alert("hello")
        }
    }
}).mount('#app')
<button v-on:click="onclick">Click me</button>
  1. Outputing HTML
Vue.createApp({
 data:()=>{
     return{
         msg: "<h1>Hello</h1>"
     }
 }
}).mount('#app')
<p v-html="msg"></p>

About

my vue learning course


Languages

Language:HTML 66.3%Language:JavaScript 33.7%