Activity Forums Salesforce® Discussions How can I create global utilities for a Lightning app under LockerService?

  • Manpreet

    Member
    January 30, 2018 at 4:32 pm

    Hi Tanu,

    You can define your utilities in the helper method of a custom component CmpRoot, and make all your components inherit from CmpRoot so your utilities will be available directly from their helpers as they are inherited.

    <component extends="c:CmpRoot">

    </component>

    Thanks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos