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

How can I access methods of another controller (or should I use services instead?)

$
0
0

@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

Read full topic


Viewing all articles
Browse latest Browse all 4830

Trending Articles