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

Commit 4a6a3ba

Browse files
docs(*): fix anchors for members in api docs
1 parent 0c9abc3 commit 4a6a3ba

29 files changed

+181
-181
lines changed

docs/content/api/index.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ or JavaScript callbacks.
156156
{@link ngAnimate JS-based animations}
157157
</td>
158158
<td>
159-
Use {@link angular.Module#methods_animation module.animation()} to register a JavaScript animation. Once registered the animation can be triggered by referencing the CSS class within the HTML template code.
159+
Use {@link angular.Module#animation module.animation()} to register a JavaScript animation. Once registered the animation can be triggered by referencing the CSS class within the HTML template code.
160160
</td>
161161
</tr>
162162
</table>

docs/content/error/$injector/pget.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ angular.module("myApp", [])
2222
.provider('good', GoodProvider);
2323
```
2424

25-
For more information, refer to the {@link auto.$provide#methods_provider
25+
For more information, refer to the {@link auto.$provide#provider
2626
$provide.provider} api doc.

docs/content/error/$sce/icontext.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
@fullName Invalid / Unknown SCE context
44
@description
55

6-
The context enum passed to {@link ng.$sce#methods_trustAs $sce.trustAs} was not recognized.
6+
The context enum passed to {@link ng.$sce#trustAs $sce.trustAs} was not recognized.
77

88
Please consult the list of {@link ng.$sce#contexts supported Strict Contextual Escaping (SCE) contexts}.

docs/content/error/$sce/imatcher.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@fullName Invalid matcher (only string patterns and RegExp instances are supported)
44
@description
55

6-
Please see {@link ng.$sceDelegateProvider#methods_resourceUrlWhitelist
6+
Please see {@link ng.$sceDelegateProvider#resourceUrlWhitelist
77
$sceDelegateProvider.resourceUrlWhitelist} and {@link
8-
api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} for the
8+
api/ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} for the
99
list of acceptable items.

docs/content/error/$sce/insecurl.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ AngularJS' {@link ng.$sce Strict Contextual Escaping (SCE)} mode (enabled by def
88
Typically, this would occur if you're attempting to load an Angular template from an untrusted source.
99
It's also possible that a custom directive threw this error for a similar reason.
1010

11-
Angular only loads templates from trusted URLs (by calling {@link ng.$sce#methods_getTrustedResourceUrl $sce.getTrustedResourceUrl} on the template URL).
11+
Angular only loads templates from trusted URLs (by calling {@link ng.$sce#getTrustedResourceUrl $sce.getTrustedResourceUrl} on the template URL).
1212

1313
By default, only URLs that belong to the same origin are trusted. These are urls with the same domain and protocol as the application document.
1414

1515
The {@link ng.directive:ngInclude ngInclude} directive and {@link guide/directive directives} that specify a `templateUrl` require a trusted resource URL.
1616

1717
To load templates from other domains and/or protocols, either adjust the {@link
18-
api/ng.$sceDelegateProvider#methods_resourceUrlWhitelist whitelist}/ {@link
19-
api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist blacklist} or wrap the URL with a call to {@link
20-
api/ng.$sce#methods_trustAsResourceUrl $sce.trustAsResourceUrl}.
18+
api/ng.$sceDelegateProvider#resourceUrlWhitelist whitelist}/ {@link
19+
api/ng.$sceDelegateProvider#resourceUrlBlacklist blacklist} or wrap the URL with a call to {@link
20+
api/ng.$sce#trustAsResourceUrl $sce.trustAsResourceUrl}.
2121

2222
**Note**: The browser's [Same Origin
2323
Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest) and

docs/content/error/$sce/itype.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
@fullName String Value is Required for SCE Trust Call
44
@description
55

6-
{@link ng.$sce#methods_trustAs $sce.trustAs} requires a string value.
6+
{@link ng.$sce#trustAs $sce.trustAs} requires a string value.
77

88
Read more about {@link ng.$sce Strict Contextual Escaping (SCE)} in AngularJS.

docs/content/error/$sce/iwcard.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
@fullName The sequence *** is not a valid pattern wildcard
44
@description
55

6-
The strings in {@link ng.$sceDelegateProvider#methods_resourceUrlWhitelist
6+
The strings in {@link ng.$sceDelegateProvider#resourceUrlWhitelist
77
$sceDelegateProvider.resourceUrlWhitelist} and {@link
8-
api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} may not
8+
api/ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} may not
99
contain the undefined sequence `***`. Only `*` and `**` wildcard patterns are defined.

docs/content/guide/compiler.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ If you want a deeper look into Angular's compilation process, you're in the righ
1616
Angular's {@link ng.$compile HTML compiler} allows the developer to teach the
1717
browser new HTML syntax. The compiler allows you to attach behavior to any HTML element or attribute
1818
and even create new HTML elements or attributes with custom behavior. Angular calls these behavior
19-
extensions {@link ng.$compileProvider#methods_directive directives}.
19+
extensions {@link ng.$compileProvider#directive directives}.
2020

2121
HTML has a lot of constructs for formatting the HTML for static documents in a declarative fashion.
2222
For example if something needs to be centered, there is no need to provide instructions to the
@@ -68,7 +68,7 @@ ng.directive:ngBind `ng-bind`} directive.
6868
```
6969

7070
A directive is just a function which executes when the compiler encounters it in the DOM. See {@link
71-
ng.$compileProvider#methods_directive directive API} for in-depth documentation on how
71+
ng.$compileProvider#directive directive API} for in-depth documentation on how
7272
to write directives.
7373

7474
Here is a directive which makes any element draggable. Notice the `draggable` attribute on the
@@ -174,7 +174,7 @@ HTML compilation happens in three phases:
174174

175175
3. `$compile` links the template with the scope by calling the combined linking function from the previous step.
176176
This in turn will call the linking function of the individual directives, registering listeners on the elements
177-
and setting up {@link ng.$rootScope.Scope#methods_$watch `$watch`s} with the {@link ng.$rootScope.Scope `scope`}
177+
and setting up {@link ng.$rootScope.Scope#$watch `$watch`s} with the {@link ng.$rootScope.Scope `scope`}
178178
as each directive is configured to do.
179179

180180
The result of this is a live binding between the scope and the DOM. So at this point, a change in

docs/content/guide/directive.ngdoc

+4-4
Original file line numberDiff line numberDiff line change
@@ -131,8 +131,8 @@ directives when possible.
131131

132132
During the compilation process the {@link ng.$compile compiler} matches text and attributes
133133
using the {@link ng.$interpolate $interpolate} service to see if they contain embedded
134-
expressions. These expressions are registered as {@link ng.$rootScope.Scope#methods_$watch watches}
135-
and will update as part of normal {@link ng.$rootScope.Scope#methods_$digest digest} cycle. An
134+
expressions. These expressions are registered as {@link ng.$rootScope.Scope#$watch watches}
135+
and will update as part of normal {@link ng.$rootScope.Scope#$digest digest} cycle. An
136136
example of interpolation is shown below:
137137

138138
```html
@@ -174,7 +174,7 @@ For example, we could fix the example above by instead writing:
174174

175175
## Creating Directives
176176

177-
First let's talk about the {@link ng.$compileProvider#methods_directive API for registering directives}. Much like
177+
First let's talk about the {@link ng.$compileProvider#directive API for registering directives}. Much like
178178
controllers, directives are registered on modules. To register a directive, you use the
179179
`module.directive` API. `module.directive` takes the
180180
{@link guide/directive#creating-custom-directives_matching-directives normalized} directive name
@@ -185,7 +185,7 @@ options to tell `$compile` how the directive should behave when matched.
185185
The factory function is invoked only once when the
186186
{@link ng.$compile compiler} matches the directive for the first time. You can perform any
187187
initialization work here. The function is invoked using
188-
{@link auto.$injector#methods_invoke $injector.invoke} which makes it injectable just like a
188+
{@link auto.$injector#invoke $injector.invoke} which makes it injectable just like a
189189
controller.
190190

191191
<div class="alert alert-success">

docs/content/guide/expression.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ You can think of Angular expressions as JavaScript expressions with following di
3030

3131
If, on the other hand, you do want to run arbitrary JavaScript code, you should make it a
3232
controller method and call the method. If you want to `eval()` an angular expression from
33-
JavaScript, use the {@link ng.$rootScope.Scope#methods_$eval `$eval()`} method.
33+
JavaScript, use the {@link ng.$rootScope.Scope#$eval `$eval()`} method.
3434

3535
## Example
3636
<example>

docs/content/guide/forms.ngdoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -191,11 +191,11 @@ To get a hold of the controller the directive specifies a dependency as shown in
191191
The validation can occur in two places:
192192

193193
* **Model to View update** -
194-
Whenever the bound model changes, all functions in {@link ngModel.NgModelController#properties_$formatters NgModelController#$formatters} array are pipe-lined, so that each of these functions has an opportunity to format the value and change validity state of the form control through {@link ngModel.NgModelController#methods_$setValidity NgModelController#$setValidity}.
194+
Whenever the bound model changes, all functions in {@link ngModel.NgModelController#properties_$formatters NgModelController#$formatters} array are pipe-lined, so that each of these functions has an opportunity to format the value and change validity state of the form control through {@link ngModel.NgModelController#$setValidity NgModelController#$setValidity}.
195195

196196
* **View to Model update** -
197-
In a similar way, whenever a user interacts with a control it calls {@link ngModel.NgModelController#methods_$setViewValue NgModelController#$setViewValue}.
198-
This in turn pipelines all functions in the {@link ngModel.NgModelController#properties_$parsers NgModelController#$parsers} array, so that each of these functions has an opportunity to convert the value and change validity state of the form control through {@link ngModel.NgModelController#methods_$setValidity NgModelController#$setValidity}.
197+
In a similar way, whenever a user interacts with a control it calls {@link ngModel.NgModelController#$setViewValue NgModelController#$setViewValue}.
198+
This in turn pipelines all functions in the {@link ngModel.NgModelController#properties_$parsers NgModelController#$parsers} array, so that each of these functions has an opportunity to convert the value and change validity state of the form control through {@link ngModel.NgModelController#$setValidity NgModelController#$setValidity}.
199199

200200
In the following example we create two directives.
201201

docs/content/guide/migration.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ See [05772e15](https://github.com/angular/angular.js/commit/05772e15fbecfdc63d49
361361

362362
## $location.search supports multiple keys
363363

364-
{@link ng.$location#methods_search `$location.search`} now supports multiple keys with the
364+
{@link ng.$location#search `$location.search`} now supports multiple keys with the
365365
same value provided that the values are stored in an array.
366366

367367
Before this change:

0 commit comments

Comments
 (0)