Skip to content
This repository was archived by the owner on Jan 19, 2023. It is now read-only.

Commit 7fb66ec

Browse files
sonukapoormhevery
authored andcommitted
docs: changes AoT to AOT for consistency (angular#35112)
PR Close angular#35112
1 parent 991e665 commit 7fb66ec

File tree

15 files changed

+24
-24
lines changed

15 files changed

+24
-24
lines changed

aio/content/guide/angular-compiler-options.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Angular compiler options
22

3-
When you use [AoT compilation](guide/aot-compiler), you can control how your application is compiled by specifying *template* compiler options in the `tsconfig.json` [TypeScript configuration file](guide/typescript-configuration).
3+
When you use [AOT compilation](guide/aot-compiler), you can control how your application is compiled by specifying *template* compiler options in the `tsconfig.json` [TypeScript configuration file](guide/typescript-configuration).
44

55
The template options object, `angularCompilerOptions`, is a sibling to the `compilerOptions` object that supplies standard options to the TypeScript compiler.
66

@@ -21,7 +21,7 @@ The template options object, `angularCompilerOptions`, is a sibling to the `comp
2121
{@a tsconfig-extends}
2222
## Configuration inheritance with extends
2323

24-
Like the TypeScript compiler, The Angular AoT compiler also supports `extends` in the `angularCompilerOptions` section of the TypeScript configuration file, `tsconfig.json`.
24+
Like the TypeScript compiler, The Angular AOT compiler also supports `extends` in the `angularCompilerOptions` section of the TypeScript configuration file, `tsconfig.json`.
2525
The `extends` property is at the top level, parallel to `compilerOptions` and `angularCompilerOptions`.
2626

2727
A TypeScript configuration can inherit settings from another file using the `extends` property.
@@ -48,7 +48,7 @@ For more information, see the [TypeScript Handbook](https://www.typescriptlang.o
4848

4949
## Template options
5050

51-
The following options are available for configuring the AoT template compiler.
51+
The following options are available for configuring the AOT template compiler.
5252

5353
### `allowEmptyCodegenFiles`
5454

aio/content/guide/aot-metadata-errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,7 @@ const raw = String.raw`A tagged template ${expression} string`;
518518
[`String.raw()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/raw)
519519
is a _tag function_ native to JavaScript ES2015.
520520

521-
The AoT compiler does not support tagged template expressions; avoid them in metadata expressions.
521+
The AOT compiler does not support tagged template expressions; avoid them in metadata expressions.
522522

523523
<hr>
524524

aio/content/guide/creating-libraries.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ You can build, test, and lint the project with CLI commands:
4848
</code-example>
4949

5050
Notice that the configured builder for the project is different from the default builder for app projects.
51-
This builder, among other things, ensures that the library is always built with the [AoT compiler](guide/aot-compiler), without the need to specify the `--prod` flag.
51+
This builder, among other things, ensures that the library is always built with the [AOT compiler](guide/aot-compiler), without the need to specify the `--prod` flag.
5252

5353
To make library code reusable you must define a public API for it. This "user layer" defines what is available to consumers of your library. A user of your library should be able to access public functionality (such as NgModules, service providers and general utility functions) through a single import path.
5454

aio/content/guide/universal.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ The CLI schematic `@nguniversal/express-engine` performs the required steps, as
2626
The [Tour of Heroes tutorial](tutorial) is the foundation for this walkthrough.
2727

2828
In this example, the Angular CLI compiles and bundles the Universal version of the app with the
29-
[Ahead-of-Time (AoT) compiler](guide/aot-compiler).
29+
[Ahead-of-Time (AOT) compiler](guide/aot-compiler).
3030
A Node Express web server compiles HTML pages with Universal based on client requests.
3131

3232
To create the server-side app module, `app.server.module.ts`, run the following CLI command.

aio/content/navigation.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -594,23 +594,23 @@
594594
"hidden": true
595595
},
596596
{
597-
"title": "AoT Compiler",
597+
"title": "AOT Compiler",
598598
"tooltip": "Understanding ahead-of-time compilation.",
599599
"children": [
600600
{
601601
"url": "guide/aot-compiler",
602602
"title": "Ahead-of-Time Compilation",
603-
"tooltip": "Learn why and how to use the Ahead-of-Time (AoT) compiler."
603+
"tooltip": "Learn why and how to use the Ahead-of-Time (AOT) compiler."
604604
},
605605
{
606606
"url": "guide/angular-compiler-options",
607607
"title": "Angular Compiler Options",
608-
"tooltip": "Configuring AoT compilation."
608+
"tooltip": "Configuring AOT compilation."
609609
},
610610
{
611611
"url": "guide/aot-metadata-errors",
612-
"title": "AoT Metadata Errors",
613-
"tooltip": "Troubleshooting AoT compilation."
612+
"title": "AOT Metadata Errors",
613+
"tooltip": "Troubleshooting AOT compilation."
614614
},
615615
{
616616
"url": "guide/template-typecheck",

aio/tools/example-zipper/exampleZipper.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ class ExampleZipper {
112112
'!**/npm-debug.log',
113113
'!**/example-config.json',
114114
'!**/wallaby.js',
115-
// AoT related files
115+
// AOT related files
116116
'!**/aot/**/*.*',
117117
'!**/*-aot.*'
118118
];

packages/compiler/design/architecture.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ Angular supports the following class decorators:
169169

170170
There are also a list of helper decorators that make the `@Component` and `@Directive` easier to use such as `@Input`, `@Output`, etc.; as well as a set of decorators that help `@Injectable` classes customize the injector such as `@Inject` and `@SkipSelf`.
171171

172-
Each of the class decorators can be thought of as class transformers that take the declared class and transform it, possibly using information from the helper decorators, to produce an Angular class. The JIT compiler performs this transformation at runtime. The AoT compiler performs this transformation at compile time.
172+
Each of the class decorators can be thought of as class transformers that take the declared class and transform it, possibly using information from the helper decorators, to produce an Angular class. The JIT compiler performs this transformation at runtime. The AOT compiler performs this transformation at compile time.
173173

174174
Each of the class decorators' class transformer creates a corresponding static member on the class that describes to the runtime how to use the class. For example, the `@Component` decorator creates a `ɵcmp` static member, `@Directive` create a `ɵdir`, etc. Internally, these class transformers are called a "Compiler". Most of the compilers are straight forward translations of the metadata specified in the decorator to the information provided in the corresponding definition and, therefore, do not require anything outside the source file to perform the conversion. However, the component, during production builds and for type checking a template require the module scope of the component which requires information from other files in the program.
175175

packages/core/src/render3/STATUS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ A tool which "upgrades" `node_module` compiled with non-ivy `ngc` into ivy compl
5252

5353
## `@angular/core` changes
5454

55-
The goal is for the `@Component` (and friends) to be the compiler of template. Since decorators are functions which execute during parsing of the `.js` file, the decorator can compile the template into Ivy. The AoT compiler's job is to remove the `@Component` and replace it with call to `ɵɵdefineComponent`.
55+
The goal is for the `@Component` (and friends) to be the compiler of template. Since decorators are functions which execute during parsing of the `.js` file, the decorator can compile the template into Ivy. The AOT compiler's job is to remove the `@Component` and replace it with call to `ɵɵdefineComponent`.
5656

5757
-`@angular/compiler` can patch itself onto:
5858
-`@Injectable`

packages/examples/upgrade/static/ts/full/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
// #docplaster
9-
import {Component, Directive, ElementRef, EventEmitter, Inject, Injectable, Injector, Input, NgModule, Output} from '@angular/core';
9+
import {Component, Directive, ElementRef, EventEmitter, Injectable, Injector, Input, NgModule, Output} from '@angular/core';
1010
import {BrowserModule} from '@angular/platform-browser';
1111
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
1212
import {UpgradeComponent, UpgradeModule, downgradeComponent, downgradeInjectable} from '@angular/upgrade/static';
@@ -176,6 +176,6 @@ ng1AppModule.component('exampleApp', {
176176

177177
// #docregion bootstrap-ng2
178178
// We bootstrap the Angular module as we would do in a normal Angular app.
179-
// (We are using the dynamic browser platform as this example has not been compiled AoT.)
179+
// (We are using the dynamic browser platform as this example has not been compiled AOT.)
180180
platformBrowserDynamic().bootstrapModule(Ng2AppModule);
181181
// #enddocregion

packages/examples/upgrade/static/ts/lite/module.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class MyLazyAngularModule {
141141
const ng2BootstrapFn = (extraProviders: StaticProvider[]) =>
142142
platformBrowserDynamic(extraProviders).bootstrapModule(MyLazyAngularModule);
143143
// #enddocregion
144-
// (We are using the dynamic browser platform, as this example has not been compiled AoT.)
144+
// (We are using the dynamic browser platform, as this example has not been compiled AOT.)
145145

146146

147147
// #docregion basic-how-to

0 commit comments

Comments
 (0)