Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created February 20, 2019 18:01
Show Gist options
  • Save choudharymanish8585/f56e814a606c3bf8d246878aaeecef37 to your computer and use it in GitHub Desktop.
Save choudharymanish8585/f56e814a606c3bf8d246878aaeecef37 to your computer and use it in GitHub Desktop.
({
doFormSubmit : function(component, event, helper) {
//fetching carTypeId attribute value from event
var carTypeId = event.getParam('carTypeId');
var carSearchResultComp = component.find("carSearchResult");
// call the aura:method in the child component
var carSearchCmpResult = carSearchResultComp.searchCars(carTypeId);
console.log("auraMethodResult: " + carSearchCmpResult);
},
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment