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

Commit a8c456e

Browse files
committed
post-review updates
1 parent 3c50a15 commit a8c456e

File tree

2 files changed

+11
-26
lines changed

2 files changed

+11
-26
lines changed

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

-11
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,6 @@ block template-expressions-cannot
2424
imported from `dart:math`. They are restricted to referencing members of
2525
the expression context.
2626

27-
block array-is-list-in-Dart
28-
.callout.is-helpful
29-
header Dart difference: Arrays are lists
30-
:marked
31-
Arrays in JavaScript correspond to lists in Dart
32-
(instances of the `List` class).
33-
This chapter uses _array_ and _list_ interchangeably.
34-
For more information, see
35-
[Lists](https://www.dartlang.org/docs/dart-up-and-running/ch02.html#lists)
36-
in the [Dart language tour](https://www.dartlang.org/docs/dart-up-and-running/ch02.html).
37-
3827
block statement-context
3928
:marked
4029
Template statements can’t refer to static properties on the class, nor to

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

+11-15
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ block includes
77
- var __objectAsMap = 'object';
88

99
:marked
10-
Our Angular application manages what the user sees and it achieves this through the interaction of a Component class instance (the *component*) and its user-facing template.
10+
Our Angular application manages what the user sees and can do, achieving this through the interaction of a Component class instance (the *component*) and its user-facing template.
1111

1212
Many of us are familiar with the component/template duality from our experience with model-view-controller (MVC) or model-view-viewmodel (MVVM). In Angular, the component plays the part of the controller/viewmodel, and the template represents the view.
1313

@@ -33,11 +33,11 @@ block includes
3333
* [Input and output properties](#inputs-outputs)
3434
* [Template expression operators](#expression-operators)
3535
* [pipe](#pipe)
36-
* ["safe navigation operator" (?.)](#safe-navigation-operator)
37-
.l-sub-section
38-
p.
39-
The #[+liveExampleLink2()]
40-
demonstrates all of the syntax and code snippets described in this chapter.
36+
* [safe navigation operator (?.)](#safe-navigation-operator)
37+
38+
p.
39+
The #[+liveExampleLink2()]
40+
demonstrates all of the syntax and code snippets described in this chapter.
4141

4242
.l-main-section
4343
:marked
@@ -99,9 +99,9 @@ code-example(language="html" escape="html").
9999
We’ll see template expressions again in the [property binding](#property-binding) section,
100100
appearing in quotes to the right of the `=` symbol as in `[property]="expression"`.
101101

102-
:marked
103102
We write template expressions in a language that looks like #{_JavaScript}.
104103
Many #{_JavaScript} expressions are legal template expressions, but not all.
104+
105105
#{_JavaScript} expressions that have or promote side effects are prohibited,
106106
including:
107107

@@ -187,14 +187,10 @@ block template-expressions-cannot
187187
:marked
188188
Dependent values should not change during a single turn of the event loop.
189189
If an idempotent expression returns a string or a number, it returns the same string or number
190-
when called twice in a row. If the expression returns an object (including #{_a} `#{_Array}`),
190+
when called twice in a row. If the expression returns an object (including #{_an} `#{_Array}`),
191191
it returns the same object *reference* when called twice in a row.
192192

193-
block array-is-list-in-Dart
194-
//- N/A
195-
196-
<a id="template-statements"></a>
197-
.l-main-section
193+
.l-main-section#template-statements
198194
:marked
199195
## Template statements
200196

@@ -217,7 +213,7 @@ block array-is-list-in-Dart
217213
Like template expressions, template *statements* use a language that looks like #{_JavaScript}.
218214
The template statement parser is different than the template expression parser and
219215
specifically supports both basic assignment (`=`) and chaining expressions
220-
with !{__chaining_op}.
216+
(with !{__chaining_op}).
221217

222218
However, certain #{_JavaScript} syntax is not allowed:
223219
* !{__new_op}
@@ -691,7 +687,7 @@ block dart-class-binding-bug
691687

692688
.l-sub-section
693689
:marked
694-
Note that the _style property_ name can be written in camcel case, such as `fontSize`.
690+
Note that the _style property_ name can be written in camelCase, such as `fontSize`.
695691

696692
.l-main-section
697693
:marked

0 commit comments

Comments
 (0)