{"id":2327,"date":"2020-04-30T15:43:06","date_gmt":"2020-04-30T13:43:06","guid":{"rendered":"https:\/\/www.thecodecampus.de\/blog\/?p=2327"},"modified":"2025-04-17T13:17:15","modified_gmt":"2025-04-17T11:17:15","slug":"display-the-version-and-git-hash-in-angular","status":"publish","type":"post","link":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/","title":{"rendered":"Display the version and git hash in Angular"},"content":{"rendered":"<p><a href=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2335\" src=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg\" alt=\"\" width=\"702\" height=\"395\" srcset=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg 702w, https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp-300x169.jpg 300w\" sizes=\"auto, (max-width: 702px) 100vw, 702px\" \/><\/a><\/p>\n<h1>Display the version and git hash in Angular<\/h1>\n<p>In this post I will explain the process to you that we at W11K use to display the git-hash and application version in our Angular Apps. I will briefly explain the motivation why we want to do this and show you how to use our Open Source package to easily add this to you Angular App.<\/p>\n<h2>Motivation<\/h2>\n<p>We at W11K maintain a lot of Angular Apps for our clients. Ever so often a bug report comes in and what&#8217;s the first thing you do with a bug report? You try to reproduce it.<\/p>\n<p>Wouldn&#8217;t it be nice to checkout the exact same state of the code that is deployed remotely on your local development setup? But how do you know if the deployed version is the latest commit?<br \/>\nYou can&#8217;t really be sure what exactly is deployed in the production environment unless you have access to the build-server, the deployment pipeline or the server itself. In some cases due to legal registrations your customers don&#8217;t want you to have access to those. This is where it can come in handy if you could directly see which version is deployed when you open the application in the production environment. The Version number could be displayed in the settings page, in the footer oder just be logged in the console.<br \/>\n<a href=\"https:\/\/www.thecodecampus.de\/schulungen\/angular\" style=\"display: inline-block;\">\n<picture><source srcset=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2025\/04\/schulungen-tcc_frieder_WP_big.png\" media=\"(min-width: 1024px)\"><source srcset=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2025\/04\/schulungen-tcc_frieder_WP_medium.png\" media=\"(min-width: 600px)\"><img decoding=\"async\" src=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2025\/04\/schulungen-tcc_frieder_WP_small.png\" alt=\"Angular Schulungen\" class=\"alignnone size-full wp-image-38\">\n<\/picture>\n<\/a><\/p>\n<h2>Implementation Concept<\/h2>\n<p>A popular way to implement having access to git infos in your deployed application was highlighted by some other articles in the web. I first discovered the core approach we used in our library by this <a href=\"https:\/\/medium.com\/@amcdnl\/version-stamping-your-app-with-the-angular-cli-d563284bb94d\" target=\"_blank\" rel=\"noopener noreferrer\">blog post<\/a> by <a href=\"https:\/\/twitter.com\/amcdnl\" target=\"_blank\" rel=\"noopener noreferrer\">Austin<\/a> in 2018.<\/p>\n<p>The basic idea is to execute a javascript script to extract the git infos and place them inside a generated Typescript file called <strong>version.ts<\/strong> before the actual build of your applications starts. In your application you can reference the file like any normal TS file, the difference is that the content of the file is replaced automatically. This approach only works if you exclude the generated file from git and we have to make sure to update it whenever needed.<\/p>\n<p>The update of the git infos can be done by a fairly simple trick. We assume that if you deploy a new version of your App, you&#8217;ll most likely create a production build using a build server like GitLab, Jenkins etc. Because you want to have a clean state every build you&#8217;ll most likely execute a <strong>npm install<\/strong> as part of your build pipeline. What you might not know is that <a href=\"https:\/\/docs.npmjs.com\/misc\/scripts\" target=\"_blank\" rel=\"noopener noreferrer\">npm provides some hooks<\/a> where you can hook into. In our case we can trigger the generation of our version.ts file after the installation of the node_modules. To do that we can simply add a property &#8220;postinstall&#8221;: &#8220;node git-version.js&#8221; to our package.json file<\/p>\n<pre class=\"lang:js decode:true\">{\r\n  \"name\": \"app\",\r\n  \"version\": \"0.0.0\",\r\n  \"scripts\": {\r\n    ...\r\n    \"postinstall\": \"node git-version.js\",\r\n    ...\r\n  }\r\n}<\/pre>\n<p>I&#8217;m not going through the content of the <a href=\"https:\/\/github.com\/w11k\/angular-git-info\/blob\/master\/src\/git-info\/files\/git-version.js\" target=\"_blank\" rel=\"noopener noreferrer\">git-version.js<\/a> file, but you can look it up if you&#8217;re interested. I will now go ahead and show you how easy it is to include this whole concept into an existing Angular App using just one statement.<\/p>\n<h2>Installation (via Angular schematics)<\/h2>\n<p>The angular cli is built to be extensible. You might already generate components using the cli using commands like &#8220;ng generate component my-component&#8221;. The concept is called <a href=\"https:\/\/angular.io\/guide\/schematics\" target=\"_blank\" rel=\"noopener noreferrer\">Angular schematics<\/a> and you can not only generate components but also include whole feature sets and third party libraries with a one-liner. You might have used Angular Material in the past. Adding it do your project is as simple as typing &#8220;ng add @angular\/material&#8221; into your terminal.<\/p>\n<p>The installation of the our schematic is as easy as it get&#8217;s. You just have to execute the following statement in your Terminal and the angular-cli and our custom schematic will do the rest for you.<\/p>\n<pre class=\"lang:sh decode:true\">ng add @w11k\/git-info<\/pre>\n<p>We will automatically<\/p>\n<ul>\n<li>add required devDependencies to your\u00a0<code>package.json<\/code><\/li>\n<li>add a script\u00a0<code>git-version.js<\/code>\u00a0in the same folder where your\u00a0<code>package.json<\/code> is<\/li>\n<li>add a npm\u00a0<code>postinstall<\/code>-hook to the\u00a0<code>scipts<\/code>\u00a0section of your\u00a0<code>package.json<\/code><\/li>\n<li>add the automatically generated file to the\u00a0<code>.gitignore<\/code><\/li>\n<\/ul>\n<h2>Usage<\/h2>\n<p>Since the latest git-infos are now stored in an exported constant in the <strong>version.ts<\/strong>, we can import it anywhere in our application and use it in Services, Components, Modules and so on. Here is the root AppComponent, that imports the version from the version.ts file and logs the application version to the Browsers console. Note that the property VERSION.version represents the version set in your package.json<\/p>\n<pre class=\"lang:js mark:2,10 decode:true \" title=\"Example usage in an Angular Component\">import { Component } from '@angular\/core';\r\nimport { VERSION } from '..\/environments\/version'; \/\/ import the automatically generated file \r\n\r\n@Component({\r\n  selector: 'app-root',\r\n  templateUrl: '.\/app.component.html',\r\n  styleUrls: ['.\/app.component.css']\r\n})\r\nexport class AppComponent {\r\n  title = 'app';\r\n  \r\n  constructor() {\r\n    \/\/ use the properties of the VERSION constant\r\n    console.log(`Application version is: version (from package.json)=${VERSION.version}, git-tag=${VERSION.tag}, git-hash=${VERSION.hash}`);\r\n  }\r\n}<\/pre>\n<h2>Further Reading<\/h2>\n<ul>\n<li><a href=\"https:\/\/github.com\/w11k\/angular-git-info\">https:\/\/github.com\/w11k\/angular-git-info<\/a><\/li>\n<li><a href=\"https:\/\/medium.com\/@amcdnl\/version-stamping-your-app-with-the-angular-cli-d563284bb94d\">https:\/\/medium.com\/@amcdnl\/version-stamping-your-app-with-the-angular-cli-d563284bb94d<\/a><\/li>\n<li><a href=\"https:\/\/www.npmjs.com\/package\/@w11k\/git-info\">https:\/\/www.npmjs.com\/package\/@w11k\/git-info<\/a><\/li>\n<li><a href=\"https:\/\/docs.npmjs.com\/misc\/scripts\">https:\/\/docs.npmjs.com\/misc\/scripts<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Display the version and git hash in Angular In this post I will explain the process to you that we at W11K use to display the git-hash and application version in our Angular Apps. I will briefly explain the motivation why we want to do this and show you how to use our Open Source [&#8230;]<br \/><a class=\"meta-big\" href=\"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/\"> READ MORE<\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73,79],"tags":[112,12],"class_list":["post-2327","post","type-post","status-publish","format-standard","hentry","category-angular","category-tooling","tag-angular","tag-build-system"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Display the version and git hash in Angular - Web Development Blog<\/title>\n<meta name=\"description\" content=\"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Display the version and git hash in Angular - Web Development Blog\" \/>\n<meta property=\"og:description\" content=\"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development tips and tricks - theCodeCampus Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-04-30T13:43:06+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-04-17T11:17:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"702\" \/>\n\t<meta property=\"og:image:height\" content=\"395\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Kai Henzler\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kai Henzler\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/\"},\"author\":{\"name\":\"Kai Henzler\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/b9decc610011ed03b2117b5e02032132\"},\"headline\":\"Display the version and git hash in Angular\",\"datePublished\":\"2020-04-30T13:43:06+00:00\",\"dateModified\":\"2025-04-17T11:17:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/\"},\"wordCount\":782,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/3z89qp.jpg\",\"keywords\":[\"Angular\",\"Build System\"],\"articleSection\":[\"Angular\",\"Tooling\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/\",\"name\":\"Display the version and git hash in Angular - Web Development Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/3z89qp.jpg\",\"datePublished\":\"2020-04-30T13:43:06+00:00\",\"dateModified\":\"2025-04-17T11:17:15+00:00\",\"description\":\"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/3z89qp.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/04\\\/3z89qp.jpg\",\"width\":702,\"height\":395},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/display-the-version-and-git-hash-in-angular\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Display the version and git hash in Angular\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"name\":\"Web Development tips and tricks - theCodeCampus Blog\",\"description\":\"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#organization\",\"name\":\"theCodeCampus\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/01\\\/TCC-Logo-Bildmarke-quadratisch.jpg\",\"width\":156,\"height\":156,\"caption\":\"theCodeCampus\"},\"image\":{\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/#\\\/schema\\\/person\\\/b9decc610011ed03b2117b5e02032132\",\"name\":\"Kai Henzler\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/kai-henzler-tcc-author-96x96.webp\",\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/kai-henzler-tcc-author-96x96.webp\",\"contentUrl\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/wp-content\\\/uploads\\\/2024\\\/06\\\/kai-henzler-tcc-author-96x96.webp\",\"caption\":\"Kai Henzler\"},\"description\":\"I'm a web developer who is around since the AngularJS days (10+ years). My focus is on teaching others how to write simple and maintainable code.\",\"sameAs\":[\"https:\\\/\\\/www.linkedin.com\\\/in\\\/kai-henzler-58484599\\\/\"],\"url\":\"https:\\\/\\\/www.thecodecampus.de\\\/blog\\\/author\\\/khenzler\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Display the version and git hash in Angular - Web Development Blog","description":"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/","og_locale":"en_US","og_type":"article","og_title":"Display the version and git hash in Angular - Web Development Blog","og_description":"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!","og_url":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/","og_site_name":"Web Development tips and tricks - theCodeCampus Blog","article_published_time":"2020-04-30T13:43:06+00:00","article_modified_time":"2025-04-17T11:17:15+00:00","og_image":[{"width":702,"height":395,"url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg","type":"image\/jpeg"}],"author":"Kai Henzler","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kai Henzler","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#article","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/"},"author":{"name":"Kai Henzler","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/b9decc610011ed03b2117b5e02032132"},"headline":"Display the version and git hash in Angular","datePublished":"2020-04-30T13:43:06+00:00","dateModified":"2025-04-17T11:17:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/"},"wordCount":782,"commentCount":1,"publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"image":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg","keywords":["Angular","Build System"],"articleSection":["Angular","Tooling"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/","url":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/","name":"Display the version and git hash in Angular - Web Development Blog","isPartOf":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#primaryimage"},"image":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#primaryimage"},"thumbnailUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg","datePublished":"2020-04-30T13:43:06+00:00","dateModified":"2025-04-17T11:17:15+00:00","description":"Elevate Angular projects! Display version and Git hash effortlessly. Enhance visibility, streamline updates. Dive into advanced Angular now!","breadcrumb":{"@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#primaryimage","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2020\/04\/3z89qp.jpg","width":702,"height":395},{"@type":"BreadcrumbList","@id":"https:\/\/www.thecodecampus.de\/blog\/display-the-version-and-git-hash-in-angular\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.thecodecampus.de\/blog\/"},{"@type":"ListItem","position":2,"name":"Display the version and git hash in Angular"}]},{"@type":"WebSite","@id":"https:\/\/www.thecodecampus.de\/blog\/#website","url":"https:\/\/www.thecodecampus.de\/blog\/","name":"Web Development tips and tricks - theCodeCampus Blog","description":"Tips, tricks, and experiences about developing web and mobile applications with Angular, TypeScript, and Testing.","publisher":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.thecodecampus.de\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.thecodecampus.de\/blog\/#organization","name":"theCodeCampus","url":"https:\/\/www.thecodecampus.de\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/01\/TCC-Logo-Bildmarke-quadratisch.jpg","width":156,"height":156,"caption":"theCodeCampus"},"image":{"@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.thecodecampus.de\/blog\/#\/schema\/person\/b9decc610011ed03b2117b5e02032132","name":"Kai Henzler","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/06\/kai-henzler-tcc-author-96x96.webp","url":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/06\/kai-henzler-tcc-author-96x96.webp","contentUrl":"https:\/\/www.thecodecampus.de\/blog\/wp-content\/uploads\/2024\/06\/kai-henzler-tcc-author-96x96.webp","caption":"Kai Henzler"},"description":"I'm a web developer who is around since the AngularJS days (10+ years). My focus is on teaching others how to write simple and maintainable code.","sameAs":["https:\/\/www.linkedin.com\/in\/kai-henzler-58484599\/"],"url":"https:\/\/www.thecodecampus.de\/blog\/author\/khenzler\/"}]}},"_links":{"self":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/2327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/comments?post=2327"}],"version-history":[{"count":13,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/2327\/revisions"}],"predecessor-version":[{"id":3398,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/posts\/2327\/revisions\/3398"}],"wp:attachment":[{"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/categories?post=2327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thecodecampus.de\/blog\/wp-json\/wp\/v2\/tags?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}