@@ -5,7 +5,7 @@ block includes
5
5
One of the defining features of a single page application is its manipulation
6
6
of the DOM tree. Instead of serving a whole new page every time a user
7
7
navigates, whole sections of the DOM appear and disappear according
8
- to the application state. In this chapter we'll to look at how Angular
8
+ to the application state. In this chapter we'll look at how Angular
9
9
manipulates the DOM and how we can do it ourselves in our own directives.
10
10
11
11
In this chapter we will
@@ -48,7 +48,7 @@ block includes
48
48
:marked
49
49
## NgIf Case Study
50
50
51
- Let’ s focus on `ngIf`. It's a great example of a structural
51
+ Let' s focus on `ngIf`. It's a great example of a structural
52
52
directive: it takes a boolean and makes an entire chunk of DOM appear
53
53
or disappear.
54
54
@@ -72,9 +72,9 @@ figure.image-display
72
72
the component's behavior continues.
73
73
It remains attached to its DOM element. It continues to listen to events.
74
74
Angular keeps checking for changes that could affect data bindings.
75
- Whatever the component was doing it keeps doing.
75
+ Whatever the component was doing, it keeps doing it .
76
76
77
- Although invisible, the component — and all of its descendent components —
77
+ Although invisible, the component — and all of its descendant components —
78
78
tie up resources that might be more useful elsewhere.
79
79
The performance and memory burden can be substantial and the user may not benefit at all.
80
80
@@ -143,7 +143,7 @@ figure.image-display
143
143
a heavy price to create and destroy it.
144
144
145
145
If we really expected to "wink" the component like this, toggling visibility would be the better choice.
146
- In most UIs, when we "close" a component we're unlikely see it again for a long time, if ever.
146
+ In most UIs, when we "close" a component we're unlikely to see it again for a long time, if ever.
147
147
The `ngIf` would be preferred in that case.
148
148
149
149
<a id =" template" ></a >
0 commit comments