Using this.transitionToRoute('path') throws the following error Cannot read property 'mountPoint' of undefined
export default class TransactionController extends Controller {
@action
redirectToProductsPage() {
this.transitionToRoute('products.sent');
}
}
Using @service router throws the following error ```
redirectToProductsPage() {
this.router.transitionTo('products.sent');
}
How can I use redirect to a certain route in Ember Octane controllers?
2 posts - 2 participants

