Why does angular add ng-version attribute to the app-root html tag

Discussão em 'Angular' iniciado por Mehdi Benmoha, Novembro 13, 2024.

  1. Today, I noticed that Angular adds its version information in the app-root as following:

    <app-root _nghost-c0="" ng-version="5.2.0">


    And even when I build in the production environment, it seems to be present. I don't know what's the main goal for adding that information there ? Isn't it a security issue to show the angular version publicly ? Thanks

    Continue reading...

Compartilhe esta Página