Ember: set specific controller for router

Have you countered some issue that your ember route is not correctly setting up the ember controller automatically.

You have to do something like

This works from Ember.js — Routing: Setting Up a Controller

But, if you have to manually to do this, even though your hbs, route, and controller all have the same name? This usually hints that you are running into a namespace issue. At least for me.

Take a look at my router.js

These are nested routes, yet, but controller are flat.

Change to this

solves the issue.

Show your support

Clapping shows how much you appreciated Alan Dong’s story.