List of Ember commands per section(routes, model, controller etc)


I’ve started to learn Ember but i’m always hitting a wall when it comes to deciding what I can do per section of routes, models, controllers, components. I was wondering if there is some sort of list of what things can be done on each of these sections?

For instance, I try and use the .save and .set command and I realise that if I do it in another section, it creates an error, but when I use it correctly, it works. It’s all very confusing and I’m using the wrong terms but hopefully you guys will understand it.


1 Like

Two things you can do:

  1. Check the API for whatever you’re interested in. For instance, if you’re on a controller you’re probably extending Ember.Controller. You’ll see the methods and properties available.

  2. Use the Ember Inspector, inspect your app, click on components, see what’s available. You can also log the object to the console using the $e symbol in the inspector.