diff options
| author | Ben McCann | 2013-12-22 19:37:12 -0800 | 
|---|---|---|
| committer | Caitlin Potter | 2014-01-17 22:36:05 -0500 | 
| commit | 756c52d6c165d89ee5a2ab1aa65582ccfce8964e (patch) | |
| tree | caeceed02627322345f06c87f9d7a9c9ceac480e /docs | |
| parent | c3e1a41d6fba9946a8e051517b9ce154f15466aa (diff) | |
| download | angular.js-756c52d6c165d89ee5a2ab1aa65582ccfce8964e.tar.bz2 | |
docs(directive): link to directive registration api function
Originally, this issue was regarding documenting `restrict: 'CM'` in the directive guide, but it
was pointed out that the restrict documentation is covered in the $compile documentation. Because of
this, a link was simply added to the $compile documentation.
However, the wording suggests that it's actually linking to the directive registration function, in
$compileProvider, so the docs will link there instead. There is a link only a paragraph below to the
$compile documentation, so this does not hurt.
Closes #5516
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/content/guide/directive.ngdoc | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/docs/content/guide/directive.ngdoc b/docs/content/guide/directive.ngdoc index dd883cf3..8dcd2bd6 100644 --- a/docs/content/guide/directive.ngdoc +++ b/docs/content/guide/directive.ngdoc @@ -174,9 +174,9 @@ 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 directive, you use the `module.directive` API. -`module.directive` takes the +First let's talk about the {@link api/ng.$compileProvider#methods_directive API for registering directives}. Much like +controllers, directives are registered on 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. | 
