- http://emberjs.com/blog/2015/05/10/run-up-to-two-oh.html#toc_new-lifecycle-hooks
- In future, with angle bracket components one-way binding will be the dafault
- Makes it easier to reason about code
- (mut) helper for setting values from action
- Should we allow data fetching in our components?
- Are simple input-fields allowed to use two-way binding?
- https://www.youtube.com/watch?v=7PUX27RKCq0
- Eager vs. lazy
- Possibility for intermediate invalid state
- Observers only really needed when dealing with external libs like D3
- Makes it easier to reason about code
- http://emberjs.com/blog/2015/06/12/ember-1-13-0-released.html#toc_component-lifecycle-hooks
- Use didReceiveAttrs to react to change in data instead of observers
- https://ember-twiddle.com/1b23569ea0228e12d9d2
- Requires attrs, not sendAction
- http://locks.svbtle.com/to-attrs-or-not-to-attrs
- Now we usually load the main data in model hook, and the rest in setupController
- -> leads to weird states, and application not be fully usable before all promises have resolved
- Use Ember.RSVP.hash to collect all promises in model hook
- Example: https://github.com/ecraft/systemair-tech-data/tree/master/src/routes/item
- Problem in Altus offline -> non-evident datatype because of storage
- Serves as documentation
- Problem in Altus offline/IL