What should be an EmberJS pre 4 controller be called for the template in a subdirectory say sample/header.hbs I cannot name the controller HeaderController ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The convention would be to have controller named
SampleHeaderController.Sure you can, but additional configuration will be required if you decide to use unconventional names. If you want to use a different controller than the route handler’s controller, pass the controller option when rendering the route:
See http://emberjs.com/guides/routing/rendering-a-template/ for more detail.