From fca7bcaf43af3a4501ea0727d48f606c58d76bcd Mon Sep 17 00:00:00 2001 From: Pete Bacon Darwin Date: Sat, 26 Oct 2013 19:24:03 +0100 Subject: docs(guide/directive): improve wording --- docs/content/guide/directive.ngdoc | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) (limited to 'docs') diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index 60b46357..cd3eaf7f 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -16,22 +16,21 @@ how to implement them. ## What are Directives? -At a high level, directives are instructions for AngularJS's -{@link api/ng.$compile HTML Compiler (`$compile`)} that tell the -compiler to attach a given behavior to a DOM node when a certain marker (such as an attribute, element -name, or comment) appears in the DOM. +At a high level, directives are markers on a DOM element (such as an attribute, element +name, or CSS class) that tell AngularJS's **HTML compiler** ({@link api/ng.$compile `$compile`}) to +attach a specified behavior to that DOM element or even transform the DOM element and its children. -The process is simple. Angular comes with a set of these directives, like `ngBind`, `ngModel`, and `ngView`. +Angular comes with a set of these directives built-in, like `ngBind`, `ngModel`, and `ngView`. Much like you create controllers and services, you can create your own directives for Angular to use. -Then, when Angular {@link guide/bootstrap bootstraps}, Angular's {@link guide/compiler HTML compiler} matches -directives against the HTML. This allows directives to register behavior or transform the DOM. +When Angular {@link guide/bootstrap bootstraps} your application, the +{@link guide/compiler HTML compiler} traverses the DOM matching directives against the DOM elements.