If I need to refer to the view for a specific controller, how would I get it in a router based application.
I can get a controller like this
App.router.get('myController')
But the controller shouldn't and usually doesn't know about the view so
App.router.get('myController.view')
^-- Will not work
This also will not work:
App.router.get('myView')
Is there a correct way to grab it?
App.router.get('myController.view')
should work fine, connectOutlet
sets the view by the outlet's name onto the controller.
However, it is the outlet that is defined on the controller, not the view, so to get a basic view you will need to access it from the ApplicationController.
App.router.get('applicationController.view')