mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-03-16 23:30:23 +00:00
docs(guide/directive): we are registering directives, not controllers
Closes #4615
This commit is contained in:
parent
31ebeeef7d
commit
a1806bb460
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue