Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 8d644bd

Browse files
gkalpakpetebacondarwin
authored andcommitted
docs(guide/directive): minor wording and styling fixes
1 parent 78eecb4 commit 8d644bd

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

docs/content/guide/directive.ngdoc

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
<div class="alert alert-warning">
99
**Note:** this guide is targeted towards developers who are already familiar with AngularJS basics.
1010
If you're just getting started, we recommend the {@link tutorial/ tutorial} first.
11-
If you're looking for the **directives API**, we recently moved it to {@link ng.$compile `$compile`}.
11+
If you're looking for the **directives API**, you can find it in the
12+
{@link ng.$compile `$compile` API docs}.
1213
</div>
1314

1415

@@ -58,7 +59,7 @@ The following `<input>` element also **matches** `ngModel`:
5859
<input data-ng-model="foo">
5960
```
6061

61-
And the following <person> element **matches** the `person` directive:
62+
And the following `<person>` element **matches** the `person` directive:
6263

6364
```html
6465
<person>{{name}}</person>
@@ -335,9 +336,7 @@ Let's change our directive to use `restrict: 'E'`:
335336
</file>
336337
</example>
337338

338-
For more on the
339-
{@link ng.$compile#directive-definition-object `restrict`}
340-
property, see the
339+
For more on the `restrict` property, see the
341340
{@link ng.$compile#directive-definition-object API docs}.
342341

343342
<div class="alert alert-info">
@@ -450,8 +449,8 @@ scope: {
450449
The **scope option** is an object that contains a property for each isolate scope binding. In this
451450
case it has just one property:
452451

453-
- Its name (`customerInfo`) corresponds to the
454-
directive's **isolate scope** property `customerInfo`.
452+
- Its name (`customerInfo`) corresponds to the directive's **isolate scope** property,
453+
`customerInfo`.
455454
- Its value (`=info`) tells `$compile` to bind to the `info` attribute.
456455

457456
<div class="alert alert-warning">
@@ -517,8 +516,8 @@ that you explicitly pass in.
517516

518517
<div class="alert alert-warning">
519518
**Note:** Normally, a scope prototypically inherits from its parent. An isolated scope does not.
520-
See the {@link $compile#directive-definition-object
521-
"Directive Definition Object - scope"} section for more information about isolate scopes.
519+
See the {@link $compile#directive-definition-object "Directive Definition Object - scope"} section
520+
for more information about isolate scopes.
522521
</div>
523522

524523
<div class="alert alert-success">

0 commit comments

Comments
 (0)