addyosmani/todomvc — pull request #496 by imcotton (2013-03-21 15:32:46+00:00)
Title: Add CoffeeScript + AngularJS example

Hey guys, I'd like to propose this example in **CoffeeScript** + **AngularJS**

As [mentioned][1] in footer of App page, it's mostly inspired/based by/on the [original AngularJS][2] example. The motivation behind this CoffeeScript version are:

- Runs on-the-fly which means it _can_ be no building necessary
- Support debugging via [source maps][3] in Chrome, Firefox coming up
- _It's just JavaScript_

[1]: https://github.com/imcotton/todomvc/commit/0ba3ff2#L14R60
[2]: http://todomvc.com/architecture-examples/angularjs/
[3]: http://coffeescript.org/#source-maps

## App Specification

- [x] Latest template
- [x] Browser Compatibility
- [ ] Bower for package management, any suggestions for below?
* `ie.js` not being included in `todomvc-common` yet, manually puts in
* no `coffee-script` package yet, manually puts in

plus:

- Auto [selected][4] in editing mode
- IE8 fully by `Array::indexOf` [free][5]
- IE7 functionally [without][6] storage, yet CSS breaking

[4]: https://github.com/imcotton/todomvc/commit/0ba3ff2#L3R13
[5]: https://github.com/imcotton/todomvc/commit/0ba3ff2#L1R35
[6]: https://github.com/imcotton/todomvc/commit/0ba3ff2#L4R10

## Code Style

- [x] Tab indentation
- [x] Single-quotes
- [ ] ~~Semicolon~~
- [x] Strict mode
- [x] No trailing whitespace
- [ ] ~~Variables at the top of the scope~~
- [ ] ~~Multiple variable statements~~
- [x] Space after keywords and between arguments and operators
- [x] Return early
- [ ] ~~JSHint valid~~
- [x] Consistency

* ~~Item~~ above due to not valid in CoffeeScript.