Skip to content

Latest commit

 

History

History
45 lines (25 loc) · 1.19 KB

README.md

File metadata and controls

45 lines (25 loc) · 1.19 KB

Ember Best Practices

Ember Philosophies, the "Ember Way"

Data down, Ember Up

Data should always migrate down from it's parent and into it's child component / resource / etc. The data shouldn't be manipulated. Once the data is migrated down, use an action to bubble it back up.

Ember Concepts

Actions

  • When naming actions use verbs to indicate an action

Routes

Don't pollute your user's browser history.

  • When possible utilize beforeModel to evaluate if it is the correct route.
  • Utilize replaceWith() to opt out of a certain route before transitioning to it.

Tooling

Ember CLI

Ember CLI will allow one to easily implement best practices that are baked into the CLI tool:

  • "Pod" Based Folder Structure
  • ES6 transpilation
  • Unit Testing

Resources

Articles

Videos