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 6 years, 3 months ago by
Forcetalks.