-1

I am a beginner in AngularJS. While reading an article about Custom Directive, I have seen a word 'CAMEL CASE'. What exactly it means?

This is the paragraph in which I have seen about CAMEL CASE:

While matching directives, Angular strips the prefix x- or data- from element/attribute names. Then it converts - or : delimited strings to camelCase and matches with the registered directives. That’s why we have used the helloWorld directive as hello-world in the HTML.

Graham
  • 7,431
  • 18
  • 59
  • 84
hanxO
  • 21
  • 1
  • 7
  • 1) This question is not properly asked. Please refer to: stackoverflow.com/help/how-to-ask. 2) You didn't even make the effort to complete the 2-minute site tour. 3) As @John3136 intimated, you didn't even bother to conduct a basic Internet search. Conclusion: This reflects poorly with respect to your intellectual preparation in delivering this question. It will be voted down. – T-Heron Dec 20 '16 at 05:22
  • @John3136 yes bro !!! :) – hanxO Dec 20 '16 at 10:05
  • @T-Heron Acha !! fine bro – hanxO Dec 20 '16 at 10:06

5 Answers5

1

camelCase means a string composed from multiple words together and each word has its first letter capitalized.

display name
  • 4,165
  • 2
  • 27
  • 52
1

The term is not really specific to angular or any other language. It's a general naming convention where you start your variable names with lower case, and then continue with upper case for any subsequent word making up the variable name.

The name camel case comes from the joking notion that capitalized letters looks like camel humps

Maksim Satsikau
  • 1,444
  • 11
  • 11
1

ThisNameIsCamelCase

this-name-is-not

Naumann
  • 161
  • 6
1

Camel case is a type of convention used in many of the programming languages, e.g. Java. Since the programming languages separate two words separated by space differently, there should be some way to write a keyword with multiple words.

Take a word software architect for example. In camel case, first letter of each word is capitalized. So this term will be written as SoftwareArchitect (or softwareArchitect).

There are many others in the world. There is a good read on Wikipedia about these conventions.

31piy
  • 23,323
  • 6
  • 47
  • 67
0
  • It is the style guidelines for programming language.

  • refers the spaces indentation and naming conventions improve code readability and make maintenance easier.

  • In angular . Ex. Controller, service, directive, filter naming convention also refers the CamelCase rules.