wayneiny
wayneiny

Reputation: 139

Ember variable to keep track of current route

Is there a property or variable that can keep track of the current route?

Or is there a way to know which route I'm on? Thanks in advance.

Upvotes: 1

Views: 53

Answers (1)

Ebrahim Pasbani
Ebrahim Pasbani

Reputation: 9406

In any route you can use : this.controllerFor('application').get('currentRouteName');

Upvotes: 2

Related Questions