mardi 29 décembre 2020

Ember: this.router.refresh() throws error in ember octane

This is the below code I am using while doing refresh the route

export default class MyController extend Controller {
    @service router;

    @action refresh() {
         this.router.refresh()
    }
}

While calling this.router.refresh() it throws like refresh function not present.




Aucun commentaire:

Enregistrer un commentaire