Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 053ecc2

Browse files
committed
docs(aot): More consistency edits to aot/jit
1 parent c15a68e commit 053ecc2

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

public/docs/ts/_cache/glossary.jade

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,14 @@ block includes
2828
+ifDocsFor('ts')
2929
a#aot
3030
:marked
31-
## Ahead of Time (AOT) Compilation
31+
## Ahead-of-Time (AoT) Compilation
3232
.l-sub-section
3333
:marked
3434
Angular applications can be compiled by developers at build-time.
3535
By compiling your application using the compiler-cli, `ngc`, you can bootstrap directly
3636
to a Module Factory, meaning you don't need to include the Angular compiler in your javascript bundle.
37-
Ahead of Time compiled applications also benefit from decreased load time and increased performance.
37+
Ahead-of-time compiled applications also benefit from decreased load time and increased
38+
performance.
3839

3940
:marked
4041
## Angular Module
@@ -415,12 +416,13 @@ a#H
415416
+ifDocsFor('ts')
416417
a#jit
417418
:marked
418-
## Just in Time (JIT) Compilation
419+
## Just-in-Time (JiT) Compilation
419420
.l-sub-section
420421
:marked
421-
With Angular _Just in Time_ bootstrapping you compile your components and modules in the browser
422+
With Angular _Just-in-time_ bootstrapping you compile your components and modules in the
423+
browser
422424
and launch the application dynamically. This is a good choice during development.
423-
Consider the [Ahead of Time](#aot) mode for production apps.
425+
Consider the [Ahead-of-time](#aot) mode for production apps.
424426

425427
.l-main-section#K
426428
:marked

public/docs/ts/latest/cookbook/rc4-to-rc5.jade

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ include ../_util-fns
1414
the need to specify them repeatedly in every component of your application.
1515

1616
The `@NgModule` metadata give the Angular compiler the context needed so that you can use the same code
17-
regardless of whether you are running Angular in [Ahead of Time](../glossary.html#aot) or [Just in Time](../glossary.html#jit) mode.
17+
regardless of whether you are running Angular in [Ahead-of-time](../glossary.html#aot) or [Just
18+
in Time](../glossary.html#jit) mode.
1819

1920
## How do I use them?
2021

@@ -82,7 +83,7 @@ code-example(format='.' language='javascript').
8283

8384
:marked
8485
## 3. Update your bootstrap
85-
Update your `main.ts` file to bootstrap using the "Just in Time" (JIT) compiler.
86+
Update your `main.ts` file to bootstrap using the "Just-in-time" (JiT) compiler.
8687

8788
code-example(format='.' language='javascript').
8889
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';

public/docs/ts/latest/guide/ngmodule.jade

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ a#bootstrap
133133
Angular offers a variety of bootstrapping options, targeting multiple platforms.
134134
In this page we consider two options, both targeting the browser.
135135

136-
### Dynamic bootstrapping with the Just-In-Time (JIT) compiler
136+
### Dynamic bootstrapping with the Just-in-time (JiT) compiler
137137
In the first, _dynamic_ option, the [Angular compiler](../cookbook/ngmodule-faq.html#q-angular-compiler "About the Angular Compiler")
138138
compiles the application in the browser and then launches the app.
139139

@@ -144,12 +144,12 @@ a#bootstrap
144144
<live-example embedded plnkr="minimal.0" img="devguide/ngmodule/minimal-plunker.png">Try the live example.</live-example>
145145

146146

147-
### Static bootstrapping with the Ahead-Of-Time (AOT) compiler
147+
### Static bootstrapping with the Ahead-Of-time (AoT) compiler
148148

149149
Consider the static alternative which can produce a much smaller application that
150150
launches faster, especially on mobile devices and high latency networks.
151151

152-
In the _static_ option, the Angular compiler runs ahead of time as part of the build process,
152+
In the _static_ option, the Angular compiler runs ahead-of-time as part of the build process,
153153
producing a collection of class factories in their own files.
154154
Among them is the `AppModuleNgFactory`.
155155

@@ -164,9 +164,10 @@ a#bootstrap
164164
The application code downloaded to the browser is much smaller than the dynamic equivalent
165165
and it is ready to execute immediately. The performance boost can be significant.
166166

167-
Both the JIT and AOT compilers generate an `AppModuleNgFactory` class from the same `AppModule` source code.
168-
The JIT compiler creates that factory class on the fly, in memory, in the browser.
169-
The AOT compiler outputs the factory to a physical file
167+
Both the JiT and AoT compilers generate an `AppModuleNgFactory` class from the same `AppModule`
168+
source code.
169+
The JiT compiler creates that factory class on the fly, in memory, in the browser.
170+
The AoT compiler outputs the factory to a physical file
170171
that we're importing here in the static version of `main.ts`.
171172

172173
In general, the `AppModule` should neither know nor care how it is bootstrapped.

0 commit comments

Comments
 (0)