diff options
| author | Joey Organisak | 2013-10-23 20:22:16 -0400 |
|---|---|---|
| committer | Pete Bacon Darwin | 2013-10-26 18:51:44 +0100 |
| commit | a1806bb460403c5e6b8079fac7c3d604db139a55 (patch) | |
| tree | 55b1bb8859038ee0d62e687ec857f788daa4e9b2 | |
| parent | 31ebeeef7d1429dc1a4792f4678dd22c31d473b4 (diff) | |
| download | angular.js-a1806bb460403c5e6b8079fac7c3d604db139a55.tar.bz2 | |
docs(guide/directive): we are registering directives, not controllers
Closes #4615
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index b709b7e1..60b46357 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -168,7 +168,7 @@ For example, we could fix the example above by instead writing: ## Creating Directives First let's talk about the API for registering directives. Much like controllers, directives are registered on -modules. To register a controller, you use the `module.directive` API. `module.directive` takes the +modules. To register a directive, you use the `module.directive` API. `module.directive` takes the {@link guide/directive#creating-custom-directives_matching-directives normalized} directive name followed by a **factory function.** This factory function should return an object with the different options to tell `$compile` how the directive should behave when matched. |
