Skip to main content
So whenever user enters any name inside the input field it should create a lightning component. Please help me on this.
5 respuestas
  1. 16 may 2019, 11:57
    Hi Prema,

    Use onchange event on the input field and use $A.createComponent to create lightning components dynamically in Javascript controller.

    Here is the link to do it:-

    https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm

    https://salesforce.stackexchange.com/questions/231778/dynamically-create-a-lightning-component-and-put-it-into-a-custom-lightning-comp

    Hope it helps, if it does mark it as solved.

    Thanks
0/9000