Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 367 Bytes

method-naming.md

File metadata and controls

16 lines (14 loc) · 367 Bytes

VueJS Naming Convention > Method Naming

camelCase

  • Begin with a lowercase letter
  • Preferably a verb e.g. getName(), buy(), count()
  • If the name contains multiple words, start it with a lowercase letter followed by an uppercase letter e.g. getXmlParser()
export default {
  methods: {
    getName () {
      return 'Hello World'
    }
  }
}