mercredi 15 mai 2019

Cannot access window.location.search in EmberJS beforeModel

I cannot access window.location.search in the beforeModel. I can however access window.location and search is populated when I open the object.

beforeModel(transition) {
  console.log(window.location) // returns object with populated search
  console.log(window.location.search) // undefined
}

I expected window.location.search not to be undefined because it is populated when I call window.location




Aucun commentaire:

Enregistrer un commentaire