How to access dynamic segment in a controller in EmberJS?

Posted by Andre Scott | Updated on

Want to access dynamic segment in a controller in EmberJS? This is how I do it in my application. Not sure if this is the best approach.

Alternatively you can also do a lookup on the container inside your controller. But I dont really think this is a good approach. Here is an example.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers