Skip to content

Commit 6fb90bd

Browse files
committed
docs(guide/Directives): clarify what compile means
Closes angular#11908
1 parent 770dd2d commit 6fb90bd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

docs/content/guide/directive.ngdoc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,9 @@ how to implement them.
1919
## What are Directives?
2020

2121
At a high level, directives are markers on a DOM element (such as an attribute, element
22-
name, comment or CSS class) that tell AngularJS's **HTML compiler** ({@link ng.$compile `$compile`}) to
23-
attach a specified behavior to that DOM element or even transform the DOM element and its children.
22+
name, comment or CSS class) that tell AngularJS's **HTML compiler** ({@link ng.$compile `$compile`})
23+
to attach a specified behavior to that DOM element (e.g. via event listeners), or even to transform
24+
the DOM element and its children.
2425

2526
Angular comes with a set of these directives built-in, like `ngBind`, `ngModel`, and `ngClass`.
2627
Much like you create controllers and services, you can create your own directives for Angular to use.
@@ -30,7 +31,7 @@ When Angular {@link guide/bootstrap bootstraps} your application, the
3031
<div class="alert alert-info">
3132
**What does it mean to "compile" an HTML template?**
3233

33-
For AngularJS, "compilation" means attaching event listeners to the HTML to make it interactive.
34+
For AngularJS, "compilation" means attaching directives to the HTML to make it interactive.
3435
The reason we use the term "compile" is that the recursive process of attaching directives
3536
mirrors the process of compiling source code in
3637
[compiled programming languages](http://en.wikipedia.org/wiki/Compiled_languages).

0 commit comments

Comments
 (0)