You need to sign in to do that
Don't have an account?
Karthik Raja M
how to rename lightning component
We can run below query in developer console query editor. It will return all the aura component name in DeveloperName column.
SELECT Id, DeveloperName FROM AuraDefinitionBundle
Now we can edit Developer Name and save it. It will reflect all the place wherever the component is used. If you are using the component in controller and helper, It will reflect there also.
SELECT Id, DeveloperName FROM AuraDefinitionBundle
Now we can edit Developer Name and save it. It will reflect all the place wherever the component is used. If you are using the component in controller and helper, It will reflect there also.
Greetings to you!
Using Developer Console Query Editor to edit Lightning Component name no longer works and the only alternative is to use the resource and use the label to override for admin purposes.
If you need to change the names then you will have to use an IDE to change names and push via metadata API. You will have to delete the previous components via destructive XML since that will still exist in the org.
Or, you need to delete the component and create a new one with a new name.
There's an idea which is active on the success community with a similar discussion for which you can upvote so that it gets available in the future.
http://success.salesforce.com/ideaView?id=0873A000000cLiqQAE
I hope it helps you.
Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future. It will help to keep this community clean.
Thanks and Regards,
Khan Anas