loadAssets(assets)
Loads asset dependencies as individual promises.
Returns
A Promise for the resolved assets.
Parameters
Name | Type | Description | Required |
assets | * | The list of the names of the component assets. | ✅ |
Usage example
In this example, the API loads the react.prod
file into Document
Object Model (DOM).
PCore.getAssetLoader().loadAssets('https://mirror.pegacloud.net/assets/react.prod.js')
.then(*** success ***)
.catch(*** failure ***)
Previous topic initServer(url [, b2sJWT]) Next topic register(name, loaderFn)