Quantcast
Channel: Ember.JS - Latest topics
Viewing all articles
Browse latest Browse all 4870

transitionToRoute() and router.transitionTo() don't work in Ember Octane controllers

$
0
0

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

Read full topic


Viewing all articles
Browse latest Browse all 4870

Trending Articles