You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/docs/ts/latest/guide/template-syntax.jade
+11-6Lines changed: 11 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,9 @@ include ../_util-fns
6
6
7
7
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.
8
8
9
-
Let’s find out what it takes to write a template for our view. We’ll cover these basic elements of template syntax:
9
+
Let’s find out what it takes to write a template for our view. We’ll cover these basic elements of template syntax.
[Run the live example](/resources/live-examples/template-syntax/ts/plnkr.html)
34
-
35
+
.l-sub-section
36
+
:marked
37
+
The [live example](/resources/live-examples/template-syntax/ts/plnkr.html)
38
+
demonstrates all of the syntax and code snippets described in this chapter.
39
+
35
40
// #docregion html-1
36
41
.l-main-section
37
42
:marked
@@ -1596,7 +1601,7 @@ figure.image-display
1596
1601
<a id="elvis"></a>
1597
1602
### The Elvis operator ( ?. ) and null property paths
1598
1603
1599
-
The Angular **Elvis operator (`?.`)** is a fluent and convenient way to guard against null and undefined values in property paths.
1604
+
The Angular **Elvis operator (`?.`)** — perhaps better described as the "safe navigation operator" — is a fluent and convenient way to guard against null and undefined values in property paths.
1600
1605
Here it is, protecting against a view render failure if the `currentHero` is null.
0 commit comments