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

Ember.Route.transitionTo VS Ember.Controller.transitionToRoute (naming concern)

$
0
0

@fguillen wrote:

Why does the same functionality have different naming depending on what component you are?

I have this code in my Controller:

this.transitionToRoute('posts');

If I want to implement same behaviour in a Route I have to write this instead:

this.transitionTo('posts');

IMHO: Looks like.. uhmm.. not elegant :confused:

Posts: 7

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 4828

Trending Articles