@alidcastano wrote:
For example: when a user creates an account in the index route to be able to automatically run a method (e.g. createSomething) from the home route.
I tried the
controllerFor
but couldn't get it to work from another route, as the method didn't return any controllers.Technically this is a method I need available in different parts of my application, which implies a service. But it seems wasteful to create a service just for something so simple.
Is there another approach?
Posts: 3
Participants: 2