I've been doing this previously as follows:
pageDidChange: Ember.observer('currentPath', function() {
this.set('pageClassName', this.get('currentPath').replace(/[.]/g, '-'));
}),
However this no longer works as the currentPath property seems to have disappeared. I also can't find any mention of it in the API docs on the EmberJS website.
Should I now be doing this differently?
Aucun commentaire:
Enregistrer un commentaire