Reputation: 8062
I'm just getting started with Ember.js and trying to understand some conventions used amongst its projects and I wanna know if, for example, the proper nomenclature for controllers is App.ApplicationController
or App.applicationController
?
I've seen code examples of both.
Upvotes: 1
Views: 245
Reputation: 10726
The Ember naming conventions are pretty simple. Words in uppercase are for class, and in lowercase for instances, as Peter Wagenet said:
If it's a class or a namespace, it's uppercase; if it's an instance, it's lowercase.
I suggest you to read its post: The Emberist: Naming convention.
You can take a look at all the others posts in this blog, they are really interesting.
Upvotes: 4