Khandaker Toihidul Islam
Software Engineer
Backend : PHP | Mysql | Symfony | CakePhp | Wordpress | Drupal
Frontend : Node js | Vue js | React Js | Javascript | HTML | CSS | Bootstrap
Tools , Server : Nginx | Apache | Git | Jenkins | Jira | Asana | Silenium | Spira

Vue component

<script src="https://unpkg.com/vue@2.6.11/dist/vue.js"></script>
<div id="example" class="text-center">
  <my-component></my-component>
  <my-component></my-component>
</div>
<script type="text/javascript">
	// register
	Vue.component('my-component', {
	  template: '<div>A custom component!</div>'
	});

	// create a root instance
	new Vue({
	  el: '#example'
	})

</script>

Demo http://vue.toihid.com/section-5/vue-components.php

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *