function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jeff Garbers - PRODJeff 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!