Skip to content

torifat/AngularJS-ORM

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AngularJS-ORM

This is an example project for my AngularJS-ORM talk at NGConf 2014. Slides: Slid.es/ProLoser/AngularJS-ORM NG-Conf 2014 Talk

Notes

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.

Coffeescript

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'.

How To Read

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

About

This is an example project for my AngularJS-ORM talk (WIP)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published