Newer Version Available

This content describes an older version of this product. View Latest

ltng:require

Loads scripts and stylesheets while maintaining dependency order, once and only once injection, across multiple components.

Attributes

Attribute Name Attribute Type Description Required?
body Component[] The body of the component. In markup, this is everything in the body of the tag.
scripts String[] The set of style sheets in dependency order that will be loaded.
styles String[] The set of scripts in dependency order that will be loaded.

Events

Event Name Event Type Description
afterScriptsLoaded COMPONENT Fired when ltng:require has loaded all scripts listed in ltng:require.scripts