Activity Forums Salesforce® Discussions Can we include external Library into Lightning Component in Salesforce?

  • Nikita

    Member
    December 4, 2019 at 7:58 am

    Hi,

    Yes, we can include the external Library into Lightning Component in Salesforce. To reference a JavaScript library, upload it as a static resource and use a <ltng:require> tag in your .cmp or .app markup.
    The framework’s content security policy mandates that external JavaScript libraries must be uploaded to Salesforce static resources.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos