July 2018
Beginner to intermediate
458 pages
9h 58m
English
One can destroy components manually by using the component.destory() function. The following code shows an example of destroying a component with a specified ID:
var componentToDestory = component.find("newCmp");//newCmp is the aura:id of the component to destroycomponentToDestory.destroy();
Read now
Unlock full access