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

Commit c2bb6ad

Browse files
chalinFoxandxss
authored andcommitted
docs(arch,hier-dep,temp-syntax,toh-5): misc copyedits (#3375)
* docs(architecture): copyedit Follow-up fix to e6741efd8f4fad20ca519d8eb99 ec0c7d102577d#commitcomment-21321447 * docs(hierarchical-dependency): copyedit * doc(template-syntax): copyedits * docs(toh-5): remove unnecessary block, trim whitespace
1 parent 2fbca28 commit c2bb6ad

File tree

4 files changed

+17
-18
lines changed

4 files changed

+17
-18
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ block ts-decorator
252252
The `@Component` decorator takes a required configuration object with the
253253
information Angular needs to create and present the component and its view.
254254

255-
Here are a few of the most useful @Component configuration options:
255+
Here are a few of the most useful `@Component` configuration options:
256256

257257
:marked
258258
- `selector`: CSS selector that tells Angular to create and insert an instance of this component

public/docs/ts/latest/guide/hierarchical-dependency-injection.jade

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ figure.image-display
115115
Each selected hero tax return opens in its own component and multiple returns can be open at the same time.
116116

117117
Each tax return component has the following characteristics:
118+
118119
* Is its own tax return editing session.
119120
* Can change a tax return without affecting a return in another component.
120121
* Has the ability to save the changes to its tax return or cancel them.

public/docs/ts/latest/guide/template-syntax.jade

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ style.
2121

2222
a#toc
2323
:marked
24-
### Table of contents
24+
### Contents
2525

2626
This guide covers the basic elements of the Angular template syntax, elements you'll need to construct the view:
2727

@@ -528,7 +528,6 @@ table(width="100%")
528528
<code>style</code> property
529529
td
530530
+makeExample('template-syntax/ts/src/app/app.component.html', 'style-binding-syntax-1')(format=".")
531-
</div>
532531

533532
:marked
534533
With this broad view in mind, you're ready to look at binding types in detail.
@@ -699,7 +698,7 @@ a#one-time-initialization
699698

700699
:marked
701700
Fortunately, Angular data binding is on alert for dangerous HTML.
702-
It *sanitizes* the values before displaying them.
701+
It [*sanitizes*](security#sanitization-and-security-contexts) the values before displaying them.
703702
It **will not** allow HTML with script tags to leak into the browser, neither with interpolation
704703
nor property binding.
705704

public/docs/ts/latest/tutorial/toh-pt5.jade

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ block extract-id
608608
When a user selects a hero in the dashboard, the app should navigate to the `HeroDetailComponent` to view and edit the selected hero.
609609

610610
Although the dashboard heroes are presented as button-like blocks, they should behave like anchor tags.
611-
When hovering over a hero block, the target URL should display in the browser status bar
611+
When hovering over a hero block, the target URL should display in the browser status bar
612612
and the user should be able to copy the link or open the hero detail view in a new tab.
613613

614614
To achieve this effect, reopen the <span ngio-ex>dashboard.component.html</span> and replace the repeated `<div *ngFor...>` tags
@@ -643,19 +643,19 @@ block extract-id
643643
:marked
644644
## Refactor routes to a _Routing Module_
645645

646-
Almost 20 lines of `AppModule` are devoted to configuring four routes.
647-
Most applications have many more routes and they [add guard services](../guide/router.html#guards)
648-
to protect against unwanted or unauthorized navigations.
649-
Routing considerations could quickly dominate this module and obscure its primary purpose which is to
646+
Almost 20 lines of `AppModule` are devoted to configuring four routes.
647+
Most applications have many more routes and they [add guard services](../guide/router.html#guards)
648+
to protect against unwanted or unauthorized navigations.
649+
Routing considerations could quickly dominate this module and obscure its primary purpose which is to
650650
establish key facts about the entire app for the Angular compiler.
651651

652652
We should refactor the routing configuration into its own class.
653-
What kind of class?
653+
What kind of class?
654654
The current `RouterModule.forRoot()` produces an Angular `ModuleWithProviders` which suggests that a
655655
class dedicated to routing should be some kind of module.
656656
It should be a [_Routing Module_](../guide/router.html#routing-module).
657657

658-
By convention the name of a _Routing Module_ contains the word "Routing" and
658+
By convention the name of a _Routing Module_ contains the word "Routing" and
659659
aligns with the name of the module that declares the components navigated to.
660660

661661
Create an `app-routing.module.ts` file as a sibling to `app.module.ts`. Give it the following contents extracted from the `AppModule` class:
@@ -667,7 +667,7 @@ block extract-id
667667

668668
* Adds `RouterModule.forRoot(routes)` to `imports`.
669669

670-
* Adds `RouterModule` to `exports` so that the components in the companion module have access to Router declarables
670+
* Adds `RouterModule` to `exports` so that the components in the companion module have access to Router declarables
671671
such as `RouterLink` and `RouterOutlet`.
672672

673673
* No `declarations`! Declarations are the responsibility of the companion module.
@@ -676,7 +676,7 @@ block extract-id
676676

677677
### Update _AppModule_
678678

679-
Now delete the routing configuration from `AppModule` and import the `AppRoutingModule`
679+
Now delete the routing configuration from `AppModule` and import the `AppRoutingModule`
680680
(_both_ with an ES `import` statement _and_ by adding it to the `NgModule.imports` list).
681681

682682
Here is the revised `AppModule`, compared to its pre-refactor state:
@@ -770,7 +770,7 @@ block heroes-component-cleanup
770770
:marked
771771
### Update the _HeroesComponent_ class.
772772

773-
The `HeroesComponent` navigates to the `HeroDetailComponent` in response to a button click.
773+
The `HeroesComponent` navigates to the `HeroDetailComponent` in response to a button click.
774774
The button's _click_ event is bound to a `gotoDetail` method that navigates _imperatively_
775775
by telling the router where to go.
776776

@@ -863,9 +863,8 @@ block css-files
863863

864864
+makeExcerpt('src/app/app.component.ts (active router links)', 'template')
865865

866-
block style-urls
867-
:marked
868-
Add a `styleUrls` property that points to this CSS file as follows.
866+
:marked
867+
Add a `styleUrls` property that refers to this CSS file as follows:
869868

870869
+makeExcerpt('src/app/app.component.ts','styleUrls')
871870

@@ -935,7 +934,7 @@ block file-tree-end
935934
.file index.html
936935
.file styles.css
937936
.file systemjs.config.js
938-
.file tsconfig.json
937+
.file tsconfig.json
939938
.file node_modules ...
940939
.file package.json
941940

0 commit comments

Comments
 (0)