How to display the app version in Angular?

Discussão em 'Angular' iniciado por Zbynek, Fevereiro 13, 2025.

  1. Zbynek

    Zbynek Guest

    How do I display the app version in Angular application? The version should be taken from package.json file.

    {
    "name": "angular-app",
    "version": "0.0.1",
    ...
    }


    In Angular 1.x, I have this html:

    <p><%=version %></p>


    In Angular, this is not rendered as version number, but instead just printed as it is (<%=version %> instead of 0.0.1).

    Continue reading...

Compartilhe esta Página