Developer Intermediate Aura Components Basics Connect Components with Events
YOUR CHALLENGE Refactor components and communicate with events Refactor the input form for camping list items into its own component and communicate with component events. Replace the HTML form in the campingList component with a new campingListForm component that calls the clickCreateItem JavaScript controller action when clicked The campingList component listens for a c:addItemEvent event and executes the action handleAddItem in the JavaScript controller The handleAddItem method saves the record to the database and adds the record to the items value provider The addItemEvent event is of type component and has a Camping_Item__c type attribute named item The campingListForm registers an addItem event of type c:addItemEvent The campingListFormController JavaScript controller calls the helper's createItem method if the form is valid The campingListForm...