Skip to content

Instantly share code, notes, and snippets.

@choudharymanish8585
Created January 22, 2019 18:48
Show Gist options
  • Save choudharymanish8585/58805e3d0ee31a4177379210568340d5 to your computer and use it in GitHub Desktop.
Save choudharymanish8585/58805e3d0ee31a4177379210568340d5 to your computer and use it in GitHub Desktop.
({
saveAccount : function(component) {
/************************
* I am writing dummy code to clear input boxes here,
* but in real you need to save all unsaved changes here
***********************/
component.find("name").set("v.value", "");
component.find("phone").set("v.value", "");
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment