Skip to content

Commit

Permalink
docs(*): fix anchors for members in api docs
Browse files Browse the repository at this point in the history
  • Loading branch information
petebacondarwin committed Feb 21, 2014
1 parent 0c9abc3 commit 4a6a3ba
Show file tree
Hide file tree
Showing 29 changed files with 181 additions and 181 deletions.
2 changes: 1 addition & 1 deletion docs/content/api/index.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ or JavaScript callbacks.
{@link ngAnimate JS-based animations}
</td>
<td>
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.
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.
</td>
</tr>
</table>
Expand Down
2 changes: 1 addition & 1 deletion docs/content/error/$injector/pget.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ angular.module("myApp", [])
.provider('good', GoodProvider);
```

For more information, refer to the {@link auto.$provide#methods_provider
For more information, refer to the {@link auto.$provide#provider
$provide.provider} api doc.
2 changes: 1 addition & 1 deletion docs/content/error/$sce/icontext.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@fullName Invalid / Unknown SCE context
@description

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

Please consult the list of {@link ng.$sce#contexts supported Strict Contextual Escaping (SCE) contexts}.
4 changes: 2 additions & 2 deletions docs/content/error/$sce/imatcher.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@fullName Invalid matcher (only string patterns and RegExp instances are supported)
@description

Please see {@link ng.$sceDelegateProvider#methods_resourceUrlWhitelist
Please see {@link ng.$sceDelegateProvider#resourceUrlWhitelist
$sceDelegateProvider.resourceUrlWhitelist} and {@link
api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} for the
api/ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} for the
list of acceptable items.
8 changes: 4 additions & 4 deletions docs/content/error/$sce/insecurl.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ AngularJS' {@link ng.$sce Strict Contextual Escaping (SCE)} mode (enabled by def
Typically, this would occur if you're attempting to load an Angular template from an untrusted source.
It's also possible that a custom directive threw this error for a similar reason.

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

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.

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

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

**Note**: The browser's [Same Origin
Policy](https://code.google.com/p/browsersec/wiki/Part2#Same-origin_policy_for_XMLHttpRequest) and
Expand Down
2 changes: 1 addition & 1 deletion docs/content/error/$sce/itype.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
@fullName String Value is Required for SCE Trust Call
@description

{@link ng.$sce#methods_trustAs $sce.trustAs} requires a string value.
{@link ng.$sce#trustAs $sce.trustAs} requires a string value.

Read more about {@link ng.$sce Strict Contextual Escaping (SCE)} in AngularJS.
4 changes: 2 additions & 2 deletions docs/content/error/$sce/iwcard.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
@fullName The sequence *** is not a valid pattern wildcard
@description

The strings in {@link ng.$sceDelegateProvider#methods_resourceUrlWhitelist
The strings in {@link ng.$sceDelegateProvider#resourceUrlWhitelist
$sceDelegateProvider.resourceUrlWhitelist} and {@link
api/ng.$sceDelegateProvider#methods_resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} may not
api/ng.$sceDelegateProvider#resourceUrlBlacklist $sceDelegateProvider.resourceUrlBlacklist} may not
contain the undefined sequence `***`. Only `*` and `**` wildcard patterns are defined.
6 changes: 3 additions & 3 deletions docs/content/guide/compiler.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ If you want a deeper look into Angular's compilation process, you're in the righ
Angular's {@link ng.$compile HTML compiler} allows the developer to teach the
browser new HTML syntax. The compiler allows you to attach behavior to any HTML element or attribute
and even create new HTML elements or attributes with custom behavior. Angular calls these behavior
extensions {@link ng.$compileProvider#methods_directive directives}.
extensions {@link ng.$compileProvider#directive directives}.

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

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

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

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

The result of this is a live binding between the scope and the DOM. So at this point, a change in
Expand Down
8 changes: 4 additions & 4 deletions docs/content/guide/directive.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ directives when possible.

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

```html
Expand Down Expand Up @@ -174,7 +174,7 @@ For example, we could fix the example above by instead writing:

## Creating Directives

First let's talk about the {@link ng.$compileProvider#methods_directive API for registering directives}. Much like
First let's talk about the {@link ng.$compileProvider#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
Expand All @@ -185,7 +185,7 @@ options to tell `$compile` how the directive should behave when matched.
The factory function is invoked only once when the
{@link ng.$compile compiler} matches the directive for the first time. You can perform any
initialization work here. The function is invoked using
{@link auto.$injector#methods_invoke $injector.invoke} which makes it injectable just like a
{@link auto.$injector#invoke $injector.invoke} which makes it injectable just like a
controller.

<div class="alert alert-success">
Expand Down
2 changes: 1 addition & 1 deletion docs/content/guide/expression.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ You can think of Angular expressions as JavaScript expressions with following di

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

## Example
<example>
Expand Down
6 changes: 3 additions & 3 deletions docs/content/guide/forms.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -191,11 +191,11 @@ To get a hold of the controller the directive specifies a dependency as shown in
The validation can occur in two places:

* **Model to View update** -
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}.
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}.

* **View to Model update** -
In a similar way, whenever a user interacts with a control it calls {@link ngModel.NgModelController#methods_$setViewValue NgModelController#$setViewValue}.
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}.
In a similar way, whenever a user interacts with a control it calls {@link ngModel.NgModelController#$setViewValue NgModelController#$setViewValue}.
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}.

In the following example we create two directives.

Expand Down
2 changes: 1 addition & 1 deletion docs/content/guide/migration.ngdoc
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ See [05772e15](https://github.com/angular/angular.js/commit/05772e15fbecfdc63d49

## $location.search supports multiple keys

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

Before this change:
Expand Down
Loading

0 comments on commit 4a6a3ba

Please sign in to comment.