File tree Expand file tree Collapse file tree 5 files changed +16
-5
lines changed
Expand file tree Collapse file tree 5 files changed +16
-5
lines changed Original file line number Diff line number Diff line change 11< mat-toolbar >
2- < span > angular-nest</ span >
2+ < span > angular-nest </ span >
3+
4+ @if (!isProduction) {
5+
6+ < small > (dev)</ small >
7+ }
38</ mat-toolbar >
49
510< div class ="content ">
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import { RouterOutlet } from '@angular/router';
55import { MaterialModule } from '../material.module' ;
66import { ApiService } from '../.api-client/services/api.service' ;
77import { Article } from '../.api-client/models/article' ;
8+ import { environment } from 'src/environments/environment' ;
89
910@Component ( {
1011 selector : 'app-root' ,
@@ -17,6 +18,8 @@ export class AppComponent {
1718 $exampleText ! : Observable < string > ;
1819 $exampleArticle ! : Observable < Article > ;
1920
21+ isProduction = environment . production ;
22+
2023 constructor ( private api : ApiService ) { }
2124
2225 getExampleText ( ) {
Original file line number Diff line number Diff line change 1- export const environment = { } ;
1+ export const environment = {
2+ production : false ,
3+ } ;
Original file line number Diff line number Diff line change 1- export const environment = { } ;
1+ export const environment = {
2+ production : true ,
3+ } ;
Original file line number Diff line number Diff line change 1- import { enableProdMode , importProvidersFrom } from '@angular/core' ;
1+ import { importProvidersFrom } from '@angular/core' ;
22import { bootstrapApplication } from '@angular/platform-browser' ;
33import { provideAnimations } from '@angular/platform-browser/animations' ;
4- import { environment } from './environments/environment.development' ;
54import { AppComponent } from './app/app.component' ;
65import { ApiModule } from 'src/.api-client/api.module' ;
76import {
You can’t perform that action at this time.
0 commit comments