From 911bcf0183953cb55407d4bf41d9304b93d1f0c1 Mon Sep 17 00:00:00 2001 From: Charles Park Date: Sun, 12 Mar 2017 19:11:41 -0400 Subject: [PATCH 1/2] docs: fix typos --- public/docs/ts/latest/cookbook/ajs-quick-reference.jade | 4 ++-- public/docs/ts/latest/guide/dependency-injection.jade | 3 +-- public/docs/ts/latest/guide/template-syntax.jade | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/docs/ts/latest/cookbook/ajs-quick-reference.jade b/public/docs/ts/latest/cookbook/ajs-quick-reference.jade index c9cf4405aa..a6ba238bac 100644 --- a/public/docs/ts/latest/cookbook/ajs-quick-reference.jade +++ b/public/docs/ts/latest/cookbook/ajs-quick-reference.jade @@ -504,7 +504,7 @@ table(width="100%") :marked ### date code-example. - <td>{{movie.releaseDate | date}}</td> + <td>{{movie.releaseDate | date}}</td> :marked Formats a date to a string based on the requested format. td @@ -578,7 +578,7 @@ table(width="100%") :marked ### number code-example. - <td>{{movie.starRating | number}}</td> + <td>{{movie.starRating | number}}</td> :marked Formats a number as text. td diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 172b8a70aa..1a29a9363c 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -740,8 +740,7 @@ p | (like the title of the application or the address of a web API endpoint) block config-obj-maps |  but these configuration objects aren't always instances of a class. - | They can be object literals - |  such as this one: + | They can be object literals such as this one: +makeExample('dependency-injection/ts/src/app/app.config.ts','config','src/app/app-config.ts (excerpt)')(format='.') diff --git a/public/docs/ts/latest/guide/template-syntax.jade b/public/docs/ts/latest/guide/template-syntax.jade index 6b25a680d4..0a3817527c 100644 --- a/public/docs/ts/latest/guide/template-syntax.jade +++ b/public/docs/ts/latest/guide/template-syntax.jade @@ -171,7 +171,7 @@ a#expression-context The context for terms in an expression is a blend of the _template variables_, the directive's _context_ object (if it has one), and the component's _members_. If you reference a name that belongs to more than one of these namespaces, - the template variable name takes precedence, followed by a name in the directive's' _context_, + the template variable name takes precedence, followed by a name in the directive's _context_, and, lastly, the component's member names. The previous example presents such a name collision. The component has a `hero` From 9c31b72b4116b05fc0280ba8d39764c638dfb293 Mon Sep 17 00:00:00 2001 From: Charles Park Date: Mon, 13 Mar 2017 20:50:15 -0400 Subject: [PATCH 2/2] docs: enhance consistency --- public/docs/ts/latest/guide/dependency-injection.jade | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index 1a29a9363c..308bf4862d 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -734,12 +734,12 @@ block dart-diff-const-metadata-ctor p | What if the dependency value isn't a class? Sometimes the thing we want to inject is a block non-class-dep-eg - span string, function, or object. + | span string, function, or object. p | Applications often define configuration objects with lots of small facts - | (like the title of the application or the address of a web API endpoint) + | (like the title of the application or the address of a web API endpoint) block config-obj-maps - |  but these configuration objects aren't always instances of a class. + | but these configuration objects aren't always instances of a class. | They can be object literals such as this one: +makeExample('dependency-injection/ts/src/app/app.config.ts','config','src/app/app-config.ts (excerpt)')(format='.')