Skip to content

Instantly share code, notes, and snippets.

@seifsallam
Last active December 21, 2015 06:59
Show Gist options
  • Save seifsallam/6268098 to your computer and use it in GitHub Desktop.
Save seifsallam/6268098 to your computer and use it in GitHub Desktop.
ember notes to remember

Outlet:

Router > Controller > View > Template

URL based navigation. Main pages of the application

Render:

Controller > View > Template

Small elements that you need to insert into Template, but doesn't have any relation to the outlet. Like new post, modal views, ...etc.

Component:

View > Template

Creating reusable elements like post-item with actions, so you can use it in other Templates, but inherits the model from the main outlet.

Partial:

Template

If you want a resuable UI element

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment