When I tried to display the version from package.json in local(dev mode) in angular, I was able to do it. for eg
import {version} from '../../package.json';
const VERSION = `${version}-a.a.a-b.b.b`;
const VERSION = ${version};
The VERSION value is getting displayed properly as '1.0.0'. The issue occurs when I tried to append the version value from package.json to a string in app.module.ts when the app is built in prod mode.
I tried to check the typeof version from package.json, it returned string.
I need to display the version from package.json appended to a string value in app.module.ts in prod mode in angular. kindly help. thanks