Skip to content

Commit

Permalink
Minor fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Napster2210 committed May 23, 2023
1 parent a3d2e31 commit 9fae5c1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/ngx-tester/src/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
<img src="assets/logo.png" alt="logo" class="header-logo" />
</span>
<span>NgxSpinner</span>
<span class="version">v15.0.0</span>
<span class="version">v{{packageVersion}}</span>
</mat-toolbar>
2 changes: 2 additions & 0 deletions projects/ngx-tester/src/app/header/header.component.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Component } from '@angular/core';
import pJSON from "../../../../../package.json";

@Component({
selector: 'app-header',
Expand All @@ -7,6 +8,7 @@ import { Component } from '@angular/core';
})
export class HeaderComponent {

packageVersion: string = pJSON?.version || "";
constructor() { }

}
4 changes: 3 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"module": "es2020",
"moduleResolution": "node",
"experimentalDecorators": true,
"resolveJsonModule": true,
"allowSyntheticDefaultImports": true,
"importHelpers": true,
"target": "ES2022",
"typeRoots": [
Expand All @@ -27,4 +29,4 @@
},
"useDefineForClassFields": false
}
}
}

0 comments on commit 9fae5c1

Please sign in to comment.