Migrate Global Value Providers
Migrate global value providers in an Aura component to scoped module imports in a Lightning web component.
Aura | Lightning Web Components | Description |
---|---|---|
$Browser | @salesforce/client/formFactor | Returns information about the form factor of the hardware the browser is running on. |
$ContentAsset | @salesforce/contentAssetUrl | References images, stylesheets, and JavaScript used as asset files in your Lightning components. |
$Label | @salesforce/label | Accesses labels stored outside your code. |
$Locale | @salesforce/i18n | Returns information about the current user’s preferred locale. |
$Resource | @salesforce/resourceUrl | References images, stylesheets, and JavaScript code you’ve uploaded in static resources. |
See Also