Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you turn on console logging in the Ember v2 router API?

In v1 of the router API, you could set this flag:

App.Router = Ember.Router.extend({
  enableLogging: true
});

And the router would log state changes to console.log, which was helpful for debugging. This doesn't seem to work anymore--does anyone know whether there's a new equivalent to this flag?

like image 902
estoner Avatar asked Jan 14 '23 15:01

estoner


1 Answers

Since 1bf0df4 commit:

App = Ember.Application.create({
  LOG_TRANSITIONS: true
});
like image 57
adivis Avatar answered Jan 30 '23 12:01

adivis