Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 00683a8

Browse files
committed
docs: fix broken links to $compileProvider.directive()
1 parent f00b6cc commit 00683a8

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/content/guide/compiler.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
Angular's {@link api/ng.$compile HTML compiler} allows the developer to teach the
88
browser new HTML syntax. The compiler allows you to attach behavior to any HTML element or attribute
99
and even create new HTML element or attributes with custom behavior. Angular calls these behavior
10-
extensions {@link api/ng.$compileProvider.directive directives}.
10+
extensions {@link api/ng.$compileProvider#directive directives}.
1111

1212
HTML has a lot of constructs for formatting the HTML for static documents in declarative fashion.
1313
For example if something needs to be centered, there is no need to provide instructions to the
@@ -60,7 +60,7 @@ api/ng.directive:ngBind `ng-bind`} directive.
6060
</pre>
6161

6262
Directive is just a function which executes when the compiler encounters it in the DOM. See {@link
63-
api/ng.$compileProvider.directive directive API} for in-depth documentation on how
63+
api/ng.$compileProvider#directive directive API} for in-depth documentation on how
6464
to write directives.
6565

6666
Here is a directive which makes any element draggable. Notice the `draggable` attribute on the

docs/content/guide/scope.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ watch {@link guide/expression expressions} and propagate events.
2828
## Scope as Data-Model
2929

3030
Scope is the glue between application controller and the view. During the template {@link compiler
31-
linking} phase the {@link api/ng.$compileProvider.directive directives} set up
31+
linking} phase the {@link api/ng.$compileProvider#directive directives} set up
3232
{@link api/ng.$rootScope.Scope#$watch `$watch`} expressions on the scope. The
3333
`$watch` allows the directives to be notified of property changes, which allows the directive to
3434
render the updated value to the DOM.
@@ -279,10 +279,10 @@ the `$digest` phase. This delay is desirable, since it coalesces multiple model
279279
### Scopes and Directives
280280

281281
During the compilation phase, the {@link compiler compiler} matches {@link
282-
api/ng.$compileProvider.directive directives} against the DOM template. The directives
282+
api/ng.$compileProvider#directive directives} against the DOM template. The directives
283283
usually fall into one of two categories:
284284

285-
- Observing {@link api/ng.$compileProvider.directive directives}, such as
285+
- Observing {@link api/ng.$compileProvider#directive directives}, such as
286286
double-curly expressions `{{expression}}`, register listeners using the {@link
287287
api/ng.$rootScope.Scope#$watch $watch()} method. This type of directive needs
288288
to be notified whenever the expression changes so that it can update the view.
@@ -299,7 +299,7 @@ correctly.
299299

300300
### Directives that Create Scopes
301301

302-
In most cases, {@link api/ng.$compileProvider.directive directives} and scopes interact
302+
In most cases, {@link api/ng.$compileProvider#directive directives} and scopes interact
303303
but do not create new instances of scope. However, some directives, such as {@link
304304
api/ng.directive:ngController ng-controller} and {@link
305305
api/ng.directive:ngRepeat ng-repeat}, create new child scopes

src/loader.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ function setupModuleLoader(window) {
193193
* @param {Function} directiveFactory Factory function for creating new instance of
194194
* directives.
195195
* @description
196-
* See {@link ng.$compileProvider.directive $compileProvider.directive()}.
196+
* See {@link ng.$compileProvider#directive $compileProvider.directive()}.
197197
*/
198198
directive: invokeLater('$compileProvider', 'directive'),
199199

src/ng/compile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ var NON_ASSIGNABLE_MODEL_EXPRESSION = 'Non-assignable model expression: ';
3131
* can then be used to link {@link ng.$rootScope.Scope scope} and the template together.
3232
*
3333
* The compilation is a process of walking the DOM tree and trying to match DOM elements to
34-
* {@link ng.$compileProvider.directive directives}. For each match it
34+
* {@link ng.$compileProvider#directive directives}. For each match it
3535
* executes corresponding template function and collects the
3636
* instance functions into a single template function which is then returned.
3737
*

src/ng/rootScope.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -326,9 +326,9 @@ function $RootScopeProvider(){
326326
*
327327
* Usually you don't call `$digest()` directly in
328328
* {@link ng.directive:ngController controllers} or in
329-
* {@link ng.$compileProvider.directive directives}.
329+
* {@link ng.$compileProvider#directive directives}.
330330
* Instead a call to {@link ng.$rootScope.Scope#$apply $apply()} (typically from within a
331-
* {@link ng.$compileProvider.directive directives}) will force a `$digest()`.
331+
* {@link ng.$compileProvider#directive directives}) will force a `$digest()`.
332332
*
333333
* If you want to be notified whenever `$digest()` is called,
334334
* you can register a `watchExpression` function with {@link ng.$rootScope.Scope#$watch $watch()}

0 commit comments

Comments
 (0)