Skip to content

Commit

Permalink
fix(core): correct "development mode" console message
Browse files Browse the repository at this point in the history
The message can be improved by removing the unneeded ‘the’ (x2).

Before:
Angular is running in the development mode. Call enableProdMode() to enable the production mode.

After:
Angular is running in development mode. Call enableProdMode() to enable production mode.

Closes angular#36570
  • Loading branch information
michielkikkert authored and IgorMinar committed May 12, 2020
1 parent 1786586 commit 6ed747d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aio/content/guide/deployment.md
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ In addition to build optimizations, Angular also has a runtime production mode.

<code-example format="nocode">

Angular is running in the development mode. Call enableProdMode() to enable the production mode.
Angular is running in development mode. Call enableProdMode() to enable production mode.

</code-example>

Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/application_ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ export class ApplicationRef {
this._loadComponent(compRef);
if (isDevMode()) {
this._console.log(
`Angular is running in the development mode. Call enableProdMode() to enable the production mode.`);
`Angular is running in development mode. Call enableProdMode() to enable production mode.`);
}
return compRef;
}
Expand Down

0 comments on commit 6ed747d

Please sign in to comment.