-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Glossary copy edit #25468
Glossary copy edit #25468
Conversation
4a5fcb1
to
cc44868
Compare
You can preview 636f214 at https://pr25468-636f214.ngbuilds.io/. |
@jenniferfell All green now except approvals |
636f214
to
5a4b921
Compare
You can preview 5a4b921 at https://pr25468-5a4b921.ngbuilds.io/. |
5a4b921
to
e96757b
Compare
You can preview e96757b at https://pr25468-e96757b.ngbuilds.io/. |
@jenniferfell All green now except approvals |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some things to fix before releasing:
- Line breaks in some unexpected places (not paragraph breaks)
- Inconsistent vert spacing in lists
- A few caps or other copy edit things
Optional:
- Some places where a comma was included out of habit but is not correct or where a comma is standing in for missing words.
- Some places where a "which" or "that" clause could be more clear.
Optional because I'm not sure if we can be more clear in this copy edit pass. Might need to put on backlog to rewrite some definitions.
aio/content/guide/glossary.md
Outdated
|
||
|
||
A function that modifies the immediately following class or property definition. | ||
Decorators (also called annotations) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators). | ||
A function that modifies a class or property definition. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, there is a line break (but not a paragraph break) at the end of this sentence in the output.
aio/content/guide/glossary.md
Outdated
A function that modifies the immediately following class or property definition. | ||
Decorators (also called annotations) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators). | ||
A function that modifies a class or property definition. | ||
Decorators (also called *annotations*) are an experimental (stage 2), JavaScript language [feature](https://github.com/wycats/javascript-decorators). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove , after (stage 2)
aio/content/guide/glossary.md
Outdated
|
||
## Domain-specific language (DSL) | ||
## domain-specific language (DSL) | ||
|
||
A special-purpose library or API; see [Domain-specific language](https://en.wikipedia.org/wiki/Domain-specific_language). | ||
|
||
Angular extends TypeScript with domain-specific languages for a number of domains relevant to Angular apps, defined in ngModules such as [animations](guide/animations), [forms](guide/forms), and [routing and navigation](guide/router). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Capitalize NgModules
aio/content/guide/glossary.md
Outdated
|
||
Both a [service](guide/glossary#service) and a [component](guide/glossary#component) that depends on that service must be marked as injectable. Other items, such as constant values, can be injectable. | ||
Both [services](guide/glossary#service) and [components](guide/glossary#component) that depends on those service must be marked as injectables. Other items, such as constant values, can be injectable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both services and components that depend ...
aio/content/guide/glossary.md
Outdated
## Directive | ||
|
||
A class with the `@Directive` [decorator](guide/glossary#decorator) that can modify the structure of the DOM, or modify attributes in the DOM and component data model. | ||
A class with the `@Directive()` [decorator](guide/glossary#decorator) that can modify the structure of the DOM, or modify attributes in the DOM and component data model. | ||
|
||
A directive class is usually associated with an HTML element or attribute, and that element or attribute is often referred to as the directive itself. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For some reason, in the output there is a line break (but not a paragraph break) at the end of the first sentence.
aio/content/guide/glossary.md
Outdated
|
||
In Angular, a [project](guide/glossary#project) that provides functionality that can be included in other Angular apps. A library is not a complete Angular app, and it cannot run independently. | ||
In Angular, a [project](guide/glossary#project) that provides functionality that can be included in other Angular apps. | ||
A library isn't a complete Angular app, and can't run independently. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extra comma:
- A library isn't a complete Angular app and can't run independently.
aio/content/guide/glossary.md
Outdated
## Module | ||
{@a module} | ||
|
||
## module | ||
|
||
In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Global. The existing docs have a lot of sentences that technically have a compound predicate with a comma. While the comma is allowed in some cases for clarity, a compound predicate typically should not have a comma. This extra comma is often a clue that the sentence has other problems. Either there is simply an extra comma out of (bad) habit, or the sentence would benefit from more words or smaller bites.
Incorrect: I ate pizza, and also ate ice cream.
Correct: I ate pizza and also ate ice cream.
Correct: I ate pizza, and I also ate ice cream.
Better: I ate pizza and ice cream.
Current: Angular uses standard JavaScript modules, and also defines an Angular module, NgModule
.
1 Drop the comma: Angular uses standard JavaScript modules and also defines an Angular module, NgModule
.
2 Compound sentence: Angular uses standard JavaScript modules, and it also defines an Angular module, NgModule
.
3 Two sentences: Angular uses standard JavaScript modules. It also defines an Angular-specific module, NgModule
.
I think 1 gets the job done here.
aio/content/guide/glossary.md
Outdated
|
||
In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`. | ||
|
||
In JavaScript (ECMAScript), each file is a module and all objects defined in the file belong to that module. Objects can exported, making them public, and public objects can be imported for use by other modules. | ||
|
||
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the npm package manager and import parts of them with JavaScript `import` declarations. | ||
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the `npm` package manager and import parts of them with JavaScript `import` declarations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"them" doesn't have a direct referent
Recommend: Install Angular libraries with the...
aio/content/guide/glossary.md
Outdated
|
||
## Bootstrap | ||
## bootstrap | ||
|
||
A way to initialize and launch an app or system. | ||
|
||
In Angular, an app's root NgModule (`AppModule`) has a `bootstrap` property that identifies the app's top-level [components](guide/glossary#component). | ||
During the bootstrap process, Angular creates and inserts these components into the `index.html` host web page. | ||
You can bootstrap multiple apps in the same `index.html`, each app with its own components. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I feel like a word is missing in this sentence
aio/content/guide/glossary.md
Outdated
|
||
In general, a module collects a block of code dedicated to a single purpose. Angular uses standard JavaScript modules, and also defines an Angular module, `NgModule`. | ||
|
||
In JavaScript (ECMAScript), each file is a module and all objects defined in the file belong to that module. Objects can exported, making them public, and public objects can be imported for use by other modules. | ||
|
||
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the npm package manager and import parts of them with JavaScript `import` declarations. | ||
Angular ships as a collection of JavaScript modules, or libraries. Each Angular library name begins with the `@angular` prefix. Install them with the `npm` package manager and import parts of them with JavaScript `import` declarations. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Another comma standing in for words. Grammatically fine as is, but if we can be more clear without too much effort, that would be great.
- Angular ships as a collection of JavaScript modules (also called libraries).
- Angular ships as a collection of JavaScript modules or libraries. [diff things]
P.S. Please squash commits. Thanks! |
75def40
to
bc20c68
Compare
You can preview bc20c68 at https://pr25468-bc20c68.ngbuilds.io/. |
bc20c68
to
580b5bc
Compare
You can preview 580b5bc at https://pr25468-580b5bc.ngbuilds.io/. |
580b5bc
to
f1b6f55
Compare
You can preview f1b6f55 at https://pr25468-f1b6f55.ngbuilds.io/. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information