Skip to content

Commit d38c4f5

Browse files
rtpHarrythetaPC
authored andcommitted
docs(build-options): remove enableProdMode() reference (#3989)
1 parent efeabb4 commit d38c4f5

File tree

2 files changed

+4
-44
lines changed

2 files changed

+4
-44
lines changed

docs/angular/build-options.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,6 @@ import { provideIonicAngular, IonicRouteStrategy } from '@ionic/angular/standalo
4747

4848
import { routes } from './app/app.routes';
4949
import { AppComponent } from './app/app.component';
50-
import { environment } from './environments/environment';
51-
52-
if (environment.production) {
53-
enableProdMode();
54-
}
5550

5651
bootstrapApplication(AppComponent, {
5752
providers: [
@@ -144,7 +139,7 @@ export class AppComponent {
144139
Icons registered in an application entry point can then be referenced by name anywhere in the application.
145140

146141
```html title="home.page.html"
147-
<!--
142+
<!--
148143
logoIonic was registered in app.component.ts instead of home.page.ts,
149144
but it can still be used in home.page.html.
150145
-->
@@ -306,7 +301,7 @@ export class AppComponent {
306301
Icons registered in an application entry point can then be referenced by name anywhere in the application.
307302

308303
```html title="home.page.html"
309-
<!--
304+
<!--
310305
logoIonic was registered in app.component.ts instead of home.page.ts,
311306
but it can still be used in home.page.html.
312307
-->
@@ -432,11 +427,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
432427

433428
import { routes } from './app/app.routes';
434429
import { AppComponent } from './app/app.component';
435-
import { environment } from './environments/environment';
436-
437-
if (environment.production) {
438-
enableProdMode();
439-
}
440430

441431
bootstrapApplication(AppComponent, {
442432
providers: [
@@ -560,11 +550,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
560550

561551
import { routes } from './app/app.routes';
562552
import { AppComponent } from './app/app.component';
563-
import { environment } from './environments/environment';
564-
565-
if (environment.production) {
566-
enableProdMode();
567-
}
568553

569554
@NgModule({
570555
declarations: [AppComponent],
@@ -605,11 +590,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
605590

606591
import { routes } from './app/app.routes';
607592
import { AppComponent } from './app/app.component';
608-
import { environment } from './environments/environment';
609-
610-
if (environment.production) {
611-
enableProdMode();
612-
}
613593

614594
@NgModule({
615595
declarations: [AppComponent],

versioned_docs/version-v7/angular/build-options.md

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,6 @@ import { provideIonicAngular, IonicRouteStrategy } from '@ionic/angular/standalo
4444

4545
import { routes } from './app/app.routes';
4646
import { AppComponent } from './app/app.component';
47-
import { environment } from './environments/environment';
48-
49-
if (environment.production) {
50-
enableProdMode();
51-
}
5247

5348
bootstrapApplication(AppComponent, {
5449
providers: [
@@ -141,7 +136,7 @@ export class AppComponent {
141136
Icons registered in an application entry point can then be referenced by name anywhere in the application.
142137

143138
```html title="home.page.html"
144-
<!--
139+
<!--
145140
logoIonic was registered in app.component.ts instead of home.page.ts,
146141
but it can still be used in home.page.html.
147142
-->
@@ -280,7 +275,7 @@ export class AppComponent {
280275
Icons registered in an application entry point can then be referenced by name anywhere in the application.
281276

282277
```html title="home.page.html"
283-
<!--
278+
<!--
284279
logoIonic was registered in app.component.ts instead of home.page.ts,
285280
but it can still be used in home.page.html.
286281
-->
@@ -383,11 +378,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
383378

384379
import { routes } from './app/app.routes';
385380
import { AppComponent } from './app/app.component';
386-
import { environment } from './environments/environment';
387-
388-
if (environment.production) {
389-
enableProdMode();
390-
}
391381

392382
bootstrapApplication(AppComponent, {
393383
providers: [
@@ -511,11 +501,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
511501

512502
import { routes } from './app/app.routes';
513503
import { AppComponent } from './app/app.component';
514-
import { environment } from './environments/environment';
515-
516-
if (environment.production) {
517-
enableProdMode();
518-
}
519504

520505
@NgModule({
521506
declarations: [AppComponent],
@@ -556,11 +541,6 @@ import { RouteReuseStrategy, provideRouter } from '@angular/router';
556541

557542
import { routes } from './app/app.routes';
558543
import { AppComponent } from './app/app.component';
559-
import { environment } from './environments/environment';
560-
561-
if (environment.production) {
562-
enableProdMode();
563-
}
564544

565545
@NgModule({
566546
declarations: [AppComponent],

0 commit comments

Comments
 (0)