Skip to content

docs(build-options): remove enableProdMode() reference #3989

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 2 additions & 22 deletions docs/angular/build-options.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: [
Expand Down Expand Up @@ -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"
<!--
<!--
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 @@ -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"
<!--
<!--
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 @@ -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: [
Expand Down Expand Up @@ -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],
Expand Down Expand Up @@ -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],
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