Skip to content

Commit

Permalink
docs(build-options): remove all usage of enableProdMode()
Browse files Browse the repository at this point in the history
  • Loading branch information
brandyscarney committed Jan 23, 2025
1 parent 40910ca commit 2d03ffb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 40 deletions.
20 changes: 2 additions & 18 deletions docs/angular/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +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';

bootstrapApplication(AppComponent, {
providers: [
Expand Down Expand Up @@ -140,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"
<!--
<!--
logoIonic was registered in app.component.ts instead of home.page.ts,
but it can still be used in home.page.html.
-->
Expand Down Expand Up @@ -302,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"
<!--
<!--
logoIonic was registered in app.component.ts instead of home.page.ts,
but it can still be used in home.page.html.
-->
Expand Down Expand Up @@ -428,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: [
Expand Down Expand Up @@ -556,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],
Expand Down Expand Up @@ -601,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],
Expand Down
24 changes: 2 additions & 22 deletions versioned_docs/version-v7/angular/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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"
<!--
<!--
logoIonic was registered in app.component.ts instead of home.page.ts,
but it can still be used in home.page.html.
-->
Expand Down Expand Up @@ -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"
<!--
<!--
logoIonic was registered in app.component.ts instead of home.page.ts,
but it can still be used in home.page.html.
-->
Expand Down Expand Up @@ -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: [
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
Expand Down

0 comments on commit 2d03ffb

Please sign in to comment.