Additional Code Features
- Templates are more or less like before
- Views
comment-views uses these (above) two templates and has some additional events, destroying and editing the comment. Keyboard controls.
Uses moments to work with dates.
Will talk more about views later.
- Validation errors
validate method on model (will talk about it later)
Modules
He prefers to use the AMD modules. Not recommended but with it you can pass a singleton object attached to the
window
. Whereas with the ES6 style modules you cannot (he argues) (
exports
)