Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

vue component naming convention

Name Casing
You have two options when defining component names:

> With kebab-case
Vue.component('my-component-name', { /* ... */ })

When defining a component with kebab-case, you must also 
use kebab-case when referencing its custom element, 
such as in <my-component-name>.

> With PascalCase
Vue.component('MyComponentName', { /* ... */ })
Comment

Naming Your Componts Vue

import X from './components/Test.vue'
/*this is not technically wrong although not generally a good idea*/

      <X msg="Hello World"/>
Comment

PREVIOUS NEXT
Code Example
Javascript :: arrow function in javascript 
Javascript :: check items in array javascript 
Javascript :: random chars javascript 
Javascript :: js modulo 
Javascript :: async await map 
Javascript :: npm ERR! missing script: build:dev 
Javascript :: What do "module.exports" and "exports.methods" mean in NodeJS / Express 
Javascript :: Force users to update your application in React Native 
Javascript :: load a component on button click react 
Javascript :: new file shortcut vscode 
Javascript :: npx for yarn 
Javascript :: router 
Javascript :: last element from list javascript 
Javascript :: rimraf node.js 
Javascript :: ondedrive 
Javascript :: react native store sensitive data in redux 
Javascript :: typeahead bootstrap 4 add multiple values 
Javascript :: Cannot GET /assets/vendor/swiper/swiper-bundle.min.js.map 
Javascript :: binding variable with td in angular site:stackoverflow.com 
Javascript :: flask server js return from folder 
Javascript :: how to use browser sync in vuetify 
Javascript :: How to Delete Comment from Post on Node, express and Mongoose and Ajax 
Javascript :: check presense of nmber in a string javascript 
Javascript :: how to check expo package compatibility 
Javascript :: nsenter 
Javascript :: Validate a gregorian date 
Javascript :: { "data": [ { "title": "", "img": "", "address": "" }, ] } json to html 
Javascript :: find value number in enzym 
Javascript :: understand frontend 
Javascript :: get latest file from s3 bucket javascript 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =