getContainerName()
Obtains the name of the container associated with the current component.
Returns
The name of the container as a string.
Parameters
This API does not have parameters.
Usage example
In this example, the API returns primary
as the name of the
Container.
const { containerName = "primary" } = getPConnect().getContainerName();
Previous topic getContainerManager() Next topic getContextName()