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: modules/core/docs/02_directives.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -88,7 +88,7 @@ Example of usage:
88
88
89
89
```<span tooltip="Tooltip text goes here.">Some text here.</span>```
90
90
91
-
The developer of an applacation can now freely use the `tooltip` attribute wherever the behavior is needed. The code above has tought the browser a new reusable and declarative bahavior.
91
+
The developer of an applacation can now freely use the `tooltip` attribute wherever the behavior is needed. The code above has taught the browser a new reusable and declarative bahavior.
92
92
93
93
Notice that databinding will work with this decorator with no further effort as show below.
94
94
@@ -214,7 +214,7 @@ Dependency Injection (DI) is a key aspect of directives. DI allows directives to
214
214
215
215
When Angular directives are instantiated, the directive can ask for other related directives to be injected into it. By assembing the directives in different order and subtypes the application behavior can be controlled. A good mental model is that DOM structure controlles the directive instantiation graph.
216
216
217
-
Directive instantiation is triggered by the directive CSS selector matching the DOM structure. The directive in its constructor can ask for other directives or application services. When asking for directives the dependency is locating by fallowing the DOM hieranchy and if not found using the application level injector.
217
+
Directive instantiation is triggered by the directive CSS selector matching the DOM structure. The directive in its constructor can ask for other directives or application services. When asking for directives the dependency is locating by following the DOM hieranchy and if not found using the application level injector.
218
218
219
219
To better understand the kinds of injections which are supported in Angular we have broken them down into use case examples.
220
220
@@ -251,7 +251,7 @@ class House { |
251
251
252
252
```
253
253
254
-
Assume fallowing DOM structure for `my_app.html`:
254
+
Assume the following DOM structure for `my_app.html`:
255
255
```
256
256
<div house> | The house attribute triggers the creation of House directive.
257
257
</div> | This is equivalent to:
@@ -261,7 +261,7 @@ Assume fallowing DOM structure for `my_app.html`:
261
261
262
262
### Injecting other Directives
263
263
264
-
Injecting other directives into directives fallows similar mechanism as injecting services, but with added constraint of visibility governed by DOM structure.
264
+
Injecting other directives into directives follows a similar mechanism as injecting services, but with added constraint of visibility governed by DOM structure.
265
265
266
266
There are five kinds of visibilities:
267
267
@@ -316,7 +316,7 @@ class Primary { |
316
316
} |
317
317
```
318
318
319
-
Assume fallowing DOM structure for `my_app.html`:
319
+
Assume the following DOM structure for `my_app.html`:
0 commit comments