Activity Forums Salesforce® Discussions What is Aura Dependency in Salesforce?

  • Anuj

    Member
    January 31, 2020 at 10:49 am

    Hi Ayush,

    <aura:dependency> enables you to declare dependencies, which help the discoverability of components.

    Use the <aura:dependency> tag if you fire an event in JavaScript code and you’re not registering the event in component markup using <aura:registerEvent>. Using an <aura:registerEvent> tag is the preferred approach.

    for example:

    <aura:dependency resource="markup://force:navigateToComponent" type="EVENT"/>

    • This reply was modified 4 years, 9 months ago by  Forcetalks.

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos