Skip to content

Commit 2dcddcf

Browse files
0x-r4bbitmhevery
authored andcommitted
docs(templates/directives): fixes several typos
Closes angular#674
1 parent a002ed1 commit 2dcddcf

File tree

2 files changed

+5
-13
lines changed

2 files changed

+5
-13
lines changed

modules/angular2/docs/core/01_templates.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,11 +223,7 @@ Example:
223223

224224
## Property Binding
225225

226-
<<<<<<< HEAD
227226
Binding application model data to the UI is the most common kind of bindings in an Angular application. The bindings
228-
=======
229-
Binding application model data to the UI is the most common type of binding in an Angular application. The bindings
230-
>>>>>>> upstream/pr/666
231227
are always in the form of `property-name` which is assigned an `expression`. The generic form is:
232228

233229
<table>
@@ -258,11 +254,7 @@ its value.
258254

259255
Key points:
260256
* The binding is to the element property not the element attribute.
261-
<<<<<<< HEAD
262257
* To prevent custom element from accidentally reading the literal `expression` on the title element, the attribute name
263-
=======
264-
* To prevent a custom element from accidentally reading the literal `expression` on the title element, the attribute name
265-
>>>>>>> upstream/pr/666
266258
is escaped. In our case the `title` is escaped to `[title]` through the addition of square brackets `[]`.
267259
* A binding value (in this case `user.firstName` will always be an expression, never a string literal)
268260

modules/angular2/docs/core/02_directives.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The simplest kind of directive is a decorator. Directives are usefull for encaps
6060

6161
* Multiple decorators can be placed on a single element.
6262
* Decorators do not introduce new evaluation context.
63-
* Decorators are registered througt the `@Decorator` meta-data annotation.
63+
* Decorators are registered through the `@Decorator` meta-data annotation.
6464

6565
Here is a trivial example of a tooltip decorator. The directive will log a tooltip into the console on every time mouse enters a region:
6666

@@ -71,7 +71,7 @@ Here is a trivial example of a tooltip decorator. The directive will log a toolt
7171
tooltip: 'text' // - DOM element tooltip property should be
7272
}, // mapped to the directive text property.
7373
event: { // List which events need to be mapped.
74-
mouseover: 'show' // - Invoke the show() method ever time
74+
mouseover: 'show' // - Invoke the show() method every time
7575
} // the mouseover event is fired.
7676
})
7777
class Form { // Directive controller class, instantiated
@@ -98,7 +98,7 @@ Notice that data binding will work with this decorator with no further effort as
9898

9999
## Components
100100

101-
Component is a directive which uses shadow DOM to create encapsulate visual behavior. Components are tipically used to create UI widgets or to break up the application into smaller components.
101+
Component is a directive which uses shadow DOM to create encapsulate visual behavior. Components are typically used to create UI widgets or to break up the application into smaller components.
102102

103103
* Only one component can be present per DOM element.
104104
* Component's CSS selectors usually trigger on element names. (Best practice)
@@ -264,7 +264,7 @@ Injecting other directives into directives follows a similar mechanism as inject
264264

265265
There are five kinds of visibilities:
266266

267-
* (no annotation): Inject a directives only if it is on the current element.
267+
* (no annotation): Inject dependant directives only if they are on the current element.
268268
* `@ancestor`: Inject a directive if it is at any element above the current element.
269269
* `@parent`: Inject a directive which is direct parent of the current element.
270270
* `@child`: Inject a list of direct children which match a given type. (Used with `Query`)
@@ -337,4 +337,4 @@ Shadow DOM provides an encapsulation for components, so as a general rule it doe
337337
## Further Reading
338338

339339
* [Composition](http://en.wikipedia.org/wiki/Object_composition)
340-
* [Composition over Inheritance](http://en.wikipedia.org/wiki/Composition_over_inheritance)
340+
* [Composition over Inheritance](http://en.wikipedia.org/wiki/Composition_over_inheritance)

0 commit comments

Comments
 (0)