EmberJS์ component์์ transition ์ฒ๋ฆฌ ํ๊ธฐ
์ถ์ฒ: stackoverflow
// component.js import Ember from 'ember'; export default Ember.Component.extend({ actions: { submit: function () { this.get('router').transitionTo('some.target.route.name'); } } }); // initializer.js export function initialize(application) { application.inject('component', 'router', 'router:main'); }; export default { name: 'component-router-inject', initialize: initialize };