mercredi 24 juin 2015

getting currentPath in ember 2.0

In Ember 2.0 controller will be deprecated. How do I access the currentPath. At the moment I am doing the following.

  needs: ["application"],

  routeName : function() {
    return this.get('controllers.application.currentPath');
  }.property('controllers.application.currentPath),




Aucun commentaire:

Enregistrer un commentaire