Standalone component that renders a small banner whenever environment.production is false, so the local dev build is never mistaken for the real app.
14 lines
351 B
TypeScript
14 lines
351 B
TypeScript
import { Component } from '@angular/core';
|
|
import { environment } from '../../../environments/environment';
|
|
|
|
export const ENV_BANNER_HEIGHT_PX = 28;
|
|
|
|
@Component({
|
|
selector: 'app-env-banner',
|
|
templateUrl: './env-banner.html',
|
|
styleUrl: './env-banner.scss',
|
|
})
|
|
export class EnvBanner {
|
|
protected readonly showBanner = !environment.production;
|
|
}
|