lundi 14 mars 2016

How do I call an method in an action method in the Controller - Ember

How can I call schoolSearchResults with searchSchools? I want to update a list of schools when the action searchSchools is called.

export default Ember.Component.extend({
  actions: {
    searchSchools: function(){
      //call schoolSearchResults
    }

  },
  schoolSearchResults: function(){
    alert("schoolSearch");
  }
});




Aucun commentaire:

Enregistrer un commentaire