Invoke Route From Controller in Emberjs
Emberjs official document doesn’t describe how to invoke route method/event from controller. Why we need this?
Some methods(like render
,controllerFor
) only exist in Route scope.
1 2 3 4 5 6 7 |
|
Use this.get('target').send
to trigger Route event.
1 2 3 4 5 6 7 8 9 10 |
|