import { Component , Inject } from '@angular/core' ; import { DEV_MODE_TOKEN } from './dev-mode.tokens' ; import pkg from 'package.json' ; @ Component ( { selector : 'app-about-page' , templateUrl : './about.component.html' , styleUrls : [ './about.component.scss' ] } ) export class AboutComponent { pkg : any ; dev = false ; constructor ( @ Inject ( DEV_MODE_TOKEN ) devMode ) { this . dev = ! devMode ; this . pkg = pkg ; } }