An ability to run $A.createComponent()
functionality using Promise API manner
#3
Labels
$A.createComponent()
functionality using Promise API manner
#3
It would be nice to have an ability to create components dynamically with Promise API.
Here is the official documentation about this functionality with raw callback approach: https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/js_cb_dynamic_cmp_async.htm
Below is a rough example of the implementation usage:
.createComponent()
,.then()
and.catch()
fuctions must returnLaxPromise
object.The API should be similar to server-side actions functionality.
Users will have an ability to chain several components creation:
Note: The same functionality should be implemented to create a list of components -
$A.createComponents(definitions)
The text was updated successfully, but these errors were encountered: