Activity Forums Salesforce® Discussions Is it possible to include external JavaScript libraries in Salesforce components?

  • Satyakam

    Member
    December 21, 2016 at 6:50 am

    Hi Vikas Kumar,

    Yes,you can include external javascript libraries in your component and application.To reference a JavaScript library  you’ve to upload as a static resource, use a <ltng:require> tag in your .cmp or .app markup.

    <ltng:require scripts="{!$Resource.***YourresourceName***}"
    afterScriptsLoaded="{!c.afterScriptsLoaded}" />

    Thanks

  • Vikas Kumar

    Member
    January 4, 2017 at 5:32 am

    Hi Satyakam,

    Thanks for the answer

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos