function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Srikanth Cheera 16Srikanth Cheera 16 

how to enable lightning components in community?

I used Salesforce Tabs+ Visualforce 
Khan AnasKhan Anas (Salesforce Developers) 
Hi Srikanth,

Greetings to you!

Lightning components are enabled by default since Winter'16. But, you need to Setup Domain for the Organization. Lightning components won't be available unless you have deployed your domain. To see how to deploy the domain follow the below link.

Also, make sure that your custom component has a header with the forceCommunity:availableForAllPageTypes interface implemented.
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global">

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.

Thanks and Regards,
Khan Anas