diff --git a/docs/angular/build-options.md b/docs/angular/build-options.md index 04a9946739b..630864d1621 100644 --- a/docs/angular/build-options.md +++ b/docs/angular/build-options.md @@ -47,11 +47,6 @@ import { provideIonicAngular, IonicRouteStrategy } from '@ionic/angular/standalo import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} bootstrapApplication(AppComponent, { providers: [ @@ -144,7 +139,7 @@ export class AppComponent { Icons registered in an application entry point can then be referenced by name anywhere in the application. ```html title="home.page.html" - @@ -306,7 +301,7 @@ export class AppComponent { Icons registered in an application entry point can then be referenced by name anywhere in the application. ```html title="home.page.html" - @@ -432,11 +427,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} bootstrapApplication(AppComponent, { providers: [ @@ -560,11 +550,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} @NgModule({ declarations: [AppComponent], @@ -605,11 +590,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} @NgModule({ declarations: [AppComponent], diff --git a/versioned_docs/version-v7/angular/build-options.md b/versioned_docs/version-v7/angular/build-options.md index 7c179cbdd6b..138990b52b8 100644 --- a/versioned_docs/version-v7/angular/build-options.md +++ b/versioned_docs/version-v7/angular/build-options.md @@ -44,11 +44,6 @@ import { provideIonicAngular, IonicRouteStrategy } from '@ionic/angular/standalo import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} bootstrapApplication(AppComponent, { providers: [ @@ -141,7 +136,7 @@ export class AppComponent { Icons registered in an application entry point can then be referenced by name anywhere in the application. ```html title="home.page.html" - @@ -280,7 +275,7 @@ export class AppComponent { Icons registered in an application entry point can then be referenced by name anywhere in the application. ```html title="home.page.html" - @@ -383,11 +378,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} bootstrapApplication(AppComponent, { providers: [ @@ -511,11 +501,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} @NgModule({ declarations: [AppComponent], @@ -556,11 +541,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router'; import { routes } from './app/app.routes'; import { AppComponent } from './app/app.component'; -import { environment } from './environments/environment'; - -if (environment.production) { - enableProdMode(); -} @NgModule({ declarations: [AppComponent],