Skip to content

Commit

Permalink
refactor(angular, angular-standalone): remove enableProdMode() (#1838)
Browse files Browse the repository at this point in the history
Co-authored-by: Maria Hutt <[email protected]>
  • Loading branch information
danielsogl and thetaPC authored Jul 3, 2024
1 parent 140d0c6 commit 4f4b246
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions angular-standalone/base/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,9 @@
import { enableProdMode } from '@angular/core';
import { bootstrapApplication } from '@angular/platform-browser';
import { RouteReuseStrategy, provideRouter, withPreloading, PreloadAllModules } from '@angular/router';
import { IonicRouteStrategy, provideIonicAngular } from '@ionic/angular/standalone';

import { routes } from './app/app.routes';
import { AppComponent } from './app/app.component';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

bootstrapApplication(AppComponent, {
providers: [
Expand Down
6 changes: 0 additions & 6 deletions angular/base/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
import { enableProdMode } from '@angular/core';
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

import { AppModule } from './app/app.module';
import { environment } from './environments/environment';

if (environment.production) {
enableProdMode();
}

platformBrowserDynamic().bootstrapModule(AppModule)
.catch(err => console.log(err));

0 comments on commit 4f4b246

Please sign in to comment.