You need to sign in to do that
Don't have an account?
bluecap
Manipulate a List or Set using JavaScript
This seems like a simple task but Im unable to find examples on doing this. I have the following attribute of type Set in my component and I want to use javascript to add/remove items. How is this best accomplished in Lightning JavaScript?
<aura:attribute name="emailList" type="Set" default="[]" description="The list of selected email addresses." />
or
<aura:attribute name="emailList" type="List" default="[]" description="The list of selected email addresses." />
<aura:attribute name="emailList" type="Set" default="[]" description="The list of selected email addresses." />
or
<aura:attribute name="emailList" type="List" default="[]" description="The list of selected email addresses." />