Migrate Global Value Providers

Migrate global value providers in an Aura component to scoped module imports in a Lightning web component.

AuraLightning Web ComponentsDescription
$Browser@salesforce/client/formFactorReturns information about the form factor of the hardware the browser is running on.
$ContentAsset@salesforce/contentAssetUrlReferences images, stylesheets, and JavaScript used as asset files in your Lightning components.
$Label@salesforce/labelAccesses labels stored outside your code.
$Locale@salesforce/i18nReturns information about the current user’s preferred locale.
$Resource@salesforce/resourceUrlReferences images, stylesheets, and JavaScript code you’ve uploaded in static resources.

See Also