mardi 30 octobre 2018

How to enable a component's property when i transitionToRoute

Hello i have a search component on page header.
When i click on a magnifyng glass, a flag property is getting true, so the search-box component is displayed like so:

enter image description here

When i press Enter on the magnifying glass i call an action, which, inside the application/controller.js it makes a redirection to a result-page, like so:

`actions: {
updateQuery(query) {
  return this.transitionToRoute('search-results', {
    queryParams: {
      query
    }
  })
 }
}

The redirections works as expected and the results-page loads, but the search-box component is still displayed! I havent found a way to disable the property flag , that it is inside the header component, yet.

Any ideas how to trigger that, when i do the redirection ?




Aucun commentaire:

Enregistrer un commentaire