mercredi 17 juillet 2019

How can I reload a model on controller checkbox state change?

Given some checkboxes that mut a boolean, how can we automatically update the model using these booleans by querying the datastore in the route?

E.g.:

model(params) {
  return this.store.query('email', {
    filter: {
      option1: controller.checkbox1, 
      option2: controller.checkbox2, 
      option3: controller.checkbox3
    }
  })
}




Aucun commentaire:

Enregistrer un commentaire