You need to sign in to do that
Don't have an account?
Jeff Garbers - PROD
Access to component version number from markup
I'd like to be able to discreetly display the versionName or versionNumber defined in my Lightning component package. I've found an explanation at
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_versioning.htm
suggesting the use of {!Version} in markup and cmp.getVersion() in a client-side controller, but both of those return null in my component.
The version name and number defined in my sfdx-project.json are appearing correctly when I check the "Installed Packages" page in Setup.
Is there some other way to get the current version number of the component, or am I doing something else wrong? Thanks!
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_versioning.htm
suggesting the use of {!Version} in markup and cmp.getVersion() in a client-side controller, but both of those return null in my component.
The version name and number defined in my sfdx-project.json are appearing correctly when I check the "Installed Packages" page in Setup.
Is there some other way to get the current version number of the component, or am I doing something else wrong? Thanks!