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.

Like what you read? Give Alan Dong a round of applause.

From a quick cheer to a standing ovation, clap to show how much you enjoyed this story.