Currently working on migrating the main app.js
file to Ember 4 and native JavaScript. I'm curious about how others are approaching modifications to classes like the Route
. Here is a snippet of my code:
Route.reopen({
//breadCrumb: null
currentRouteModel: function () {
return this.modelFor(this.routeName);
}
});
I could simply rewrite the method instances everywhere to directly return the desired result, but I'm interested in learning different approaches. Additionally, I have a reopening of the Component
in app.js
that needs attention during the migration process.