Skip to content

Instantly share code, notes, and snippets.

@ralphcrisostomo
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ralphcrisostomo/d3c15342a3ebbc7b14b1 to your computer and use it in GitHub Desktop.
Save ralphcrisostomo/d3c15342a3ebbc7b14b1 to your computer and use it in GitHub Desktop.
Ember Learning Notes

Ember Learning Notes

Tips

  • Use Invoke to run a method on every object in an array

      collection.invoke('set','isSelected', true);
    

Ember

Controller

Views

Page panels should be in components.

Route

Components

Get current controller properties.

currentControllerBinding='controller'

Use pods

ember g component component-name --pod

Page panels should be in components.

.
├── lk-body
│   ├── component.js
│   └── template.hbs
├── lk-header
│   ├── component.js
│   └── template.hbs
└── panels
    ├── dashboard-summary
    │   ├── component.js
    │   └── template.hbs
    ├── guest-list-action
    │   ├── component.js
    │   └── template.hbs
    └── guest-list-list
        ├── component.js
        └── template.hbs

Misc

Development Levels

  • Code - javasctipt, ember
  • Architectur - directory
  • Deployment - gulp
  • Infrastructure - aws
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment