This is an example project for my AngularJS-ORM talk at NGConf 2014. Slides: Slid.es/ProLoser/AngularJS-ORM
You may have noticed I don't use a src, css, view, controller, etc folders. That is because I believe in today's architecture, it's more scalable to keep modules together and small. HTML, JS and CSS are closely tied together, so we should start organizing projects that way.
I use Coffeescript because it gives me easy-to-code classes and because the last line is always returned (which is great for promise chaining). You do not have to use Coffeescript and should not refactor into it 'just because'.
Javascript:
function( x, y, z ){
return z
}
this.property( x )
var x = {
prop: true
}
Coffeescript
( x, y, z ) ->
z # last line of functions are always returned
@property x # paranthesis are optional
x = # braces are optional
prop: true