How to edit the records in Lightning component
Apex class ========== public class ContactCTRL4 { @AuraEnabled public static List<Contact> displayConRecords() { return [select LastName,Email from Contact LIMIT 10]; } @AuraEnabled public static list<Contact> updateConRecords(List<Contact> condata) { try { update condata; } catch(Exception e) { System.debug('unable to update the record due to '+e.getMessage()); } return condata; } } compoment ========= <aura:component controller="ContactCTRL4"> <aura:attribute name="conlist" type="list"/> ...