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

Commit d85505d

Browse files
docs(content): fix bad links
1 parent daa83f2 commit d85505d

16 files changed

+29
-36
lines changed

docs/content/guide/concepts.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ in the rest of the documentation.
8686
Applied to the example above, the markup directs Angular to "take the data we got from the input widgets
8787
and multiply them together".
8888

89-
The example above also contains a <a name="filter">"{@link filter filter}"</a>.
89+
The example above also contains a <a name="filter">"{@link guide/filter filter}"</a>.
9090
A filter formats the value of an expression for display to the user.
9191
In the example above, the filter {@link ng.filter:currency `currency`} formats a number
9292
into an output that looks like money.

docs/content/guide/controller.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ logic. Angular offers {@link databinding databinding} for automatic DOM manipula
109109
you have to perform your own manual DOM manipulation, encapsulate the presentation logic in
110110
{@link guide/directive directives}.
111111
- Input formatting — Use {@link forms angular form controls} instead.
112-
- Output filtering — Use {@link filter angular filters} instead.
112+
- Output filtering — Use {@link guide/filter angular filters} instead.
113113
- Sharing stateless or stateful code across Controllers — Use {@link dev_guide.services angular
114114
services} instead.
115115
- Managing the life-cycle of other components (for example, to create service instances).

docs/content/guide/dev_guide.e2e-testing.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
@description
55

66
**Angular Scenario Runner is in maintenance mode - If you're starting a new Angular project,
7-
consider using {@link https://github.com/angular/protractor Protractor}.**
7+
consider using [Protractor](https://github.com/angular/protractor).**
88

99

1010

docs/content/guide/dev_guide.services.$location.ngdoc

+3-4
Original file line numberDiff line numberDiff line change
@@ -635,10 +635,9 @@ then uses the information it obtains to compose hashbang URLs (such as
635635
## Two-way binding to $location
636636

637637
The Angular's compiler currently does not support two-way binding for methods (see [issue](https://github.com/angular/angular.js/issues/404)). If you should require two-way binding
638-
to the $location object (using {@link ng.directive:input.text
639-
ngModel} directive on an input field), you will need to specify an extra model property
640-
(e.g. `locationPath`) with two watchers which push $location updates in both directions. For
641-
example:
638+
to the $location object (using {@link input[text] ngModel} directive on an input
639+
field), you will need to specify an extra model property (e.g. `locationPath`) with two watchers
640+
which push $location updates in both directions. For example:
642641
<example>
643642
<file name="index.html">
644643
<div ng-controller="LocationController">

docs/content/guide/expression.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
Expressions are JavaScript-like code snippets that are usually placed in bindings such as `{{
66
expression }}`. Expressions are processed by the {@link ng.$parse $parse}
7-
service. Expressions are often post processed using {@link filter filters} to create a more user-friendly format.
7+
service. Expressions are often post processed using {@link guide/filter filters} to create a more user-friendly format.
88

99
For example, these are all valid expressions in angular:
1010

docs/content/guide/forms.ngdoc

+8-8
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Server-side validation is still necessary for a secure application.
1414
# Simple form
1515
The key directive in understanding two-way data-binding is {@link ng.directive:ngModel ngModel}.
1616
The `ngModel` directive provides the two-way data-binding by synchronizing the model to the view, as well as view to the model.
17-
In addition it provides an {@link ng.directive:ngModel.NgModelController API} for other directives to augment its behavior.
17+
In addition it provides an {@link ngModel.NgModelController API} for other directives to augment its behavior.
1818

1919
<doc:example>
2020
<doc:source>
@@ -113,11 +113,11 @@ This ensures that the user is not distracted with an error until after interacti
113113

114114
# Binding to form and control state
115115

116-
A form is an instance of {@link ng.directive:form.FormController FormController}.
116+
A form is an instance of {@link form.FormController FormController}.
117117
The form instance can optionally be published into the scope using the `name` attribute.
118118

119119
Similarly, an input control that has the {@link ng.directive:ngModel ngModel} directive holds an
120-
instance of {@link ng.directive:ngModel.NgModelController NgModelController}.
120+
instance of {@link ngModel.NgModelController NgModelController}.
121121
Such a control instance can be published as a property of the form instance using the `name` attribute
122122
on the input control. The name attribute specifies the name of the property on the form instance.
123123

@@ -184,18 +184,18 @@ This allows us to extend the above example with these features:
184184
# Custom Validation
185185

186186
Angular provides basic implementation for most common html5 {@link ng.directive:input input}
187-
types: ({@link ng.directive:input.text text}, {@link ng.directive:input.number number}, {@link ng.directive:input.url url}, {@link ng.directive:input.email email}, {@link ng.directive:input.radio radio}, {@link ng.directive:input.checkbox checkbox}), as well as some directives for validation (`required`, `pattern`, `minlength`, `maxlength`, `min`, `max`).
187+
types: ({@link input[text] text}, {@link input[number] number}, {@link input[url] url}, {@link input[email] email}, {@link input[radio] radio}, {@link input[checkbox] checkbox}), as well as some directives for validation (`required`, `pattern`, `minlength`, `maxlength`, `min`, `max`).
188188

189-
Defining your own validator can be done by defining your own directive which adds a custom validation function to the `ngModel` {@link ng.directive:ngModel.NgModelController controller}.
189+
Defining your own validator can be done by defining your own directive which adds a custom validation function to the `ngModel` {@link ngModel.NgModelController controller}.
190190
To get a hold of the controller the directive specifies a dependency as shown in the example below.
191191
The validation can occur in two places:
192192

193193
* **Model to View update** -
194-
Whenever the bound model changes, all functions in {@link ng.directive: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 ng.directive: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#methods_$setValidity NgModelController#$setValidity}.
195195

196196
* **View to Model update** -
197-
In a similar way, whenever a user interacts with a control it calls {@link ng.directive:ngModel.NgModelController#methods_$setViewValue NgModelController#$setViewValue}.
198-
This in turn pipelines all functions in the {@link ng.directive: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 ng.directive:ngModel.NgModelController#methods_$setValidity NgModelController#$setValidity}.
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}.
199199

200200
In the following example we create two directives.
201201

docs/content/guide/templates.ngdoc

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ These are the types of Angular elements and element attributes you can use in a
1414
augments an existing DOM element or represents a reusable DOM component - a widget.
1515
* {@link ng.$interpolate Markup} — The double
1616
curly brace notation `{{ }}` to bind expressions to elements is built-in angular markup.
17-
* {@link filter Filter} — Formats your data for display to the user.
17+
* {@link guide/filter Filter} — Formats your data for display to the user.
1818
* {@link forms Form controls} — Lets you validate user input.
1919

2020
Note: In addition to declaring the elements above in templates, you can also access these elements
@@ -49,7 +49,7 @@ eight.
4949

5050
## Related Topics
5151

52-
* {@link filter Angular Filters}
52+
* {@link guide/filter Angular Filters}
5353
* {@link forms Angular Forms}
5454

5555
## Related API

docs/content/misc/faq.ngdoc

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Watch the July 17, 2012 talk
100100

101101
### How is Angular licensed?
102102

103-
The {@link https://github.com/angular/angular.js/blob/master/LICENSE MIT License}.
103+
The [MIT License](https://github.com/angular/angular.js/blob/master/LICENSE).
104104

105105
### Can I download and use the Angular logo artwork?
106106

src/ng/directive/form.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ function FormController(element, attrs) {
226226
*
227227
* @description
228228
* Directive that instantiates
229-
* {@link ng.directive:form.FormController FormController}.
229+
* {@link form.FormController FormController}.
230230
*
231231
* If the `name` attribute is specified, the form controller is published onto the current scope under
232232
* this name.

src/ng/directive/input.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -854,7 +854,7 @@ var VALID_CLASS = 'ng-valid',
854854
the control reads value from the DOM. Each function is called, in turn, passing the value
855855
through to the next. Used to sanitize / convert the value as well as validation.
856856
For validation, the parsers should update the validity state using
857-
{@link ng.directive:ngModel.NgModelController#methods_$setValidity $setValidity()},
857+
{@link ngModel.NgModelController#$setValidity $setValidity()},
858858
and return `undefined` for invalid values.
859859
860860
*
@@ -1191,7 +1191,7 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
11911191
*
11921192
* @description
11931193
* The `ngModel` directive binds an `input`,`select`, `textarea` (or custom form control) to a
1194-
* property on the scope using {@link ng.directive:ngModel.NgModelController NgModelController},
1194+
* property on the scope using {@link ngModel.NgModelController NgModelController},
11951195
* which is created and exposed by this directive.
11961196
*
11971197
* `ngModel` is responsible for:
@@ -1214,12 +1214,12 @@ var NgModelController = ['$scope', '$exceptionHandler', '$attrs', '$element', '$
12141214
* For basic examples, how to use `ngModel`, see:
12151215
*
12161216
* - {@link ng.directive:input input}
1217-
* - {@link ng.directive:input.text text}
1218-
* - {@link ng.directive:input.checkbox checkbox}
1219-
* - {@link ng.directive:input.radio radio}
1220-
* - {@link ng.directive:input.number number}
1221-
* - {@link ng.directive:input.email email}
1222-
* - {@link ng.directive:input.url url}
1217+
* - {@link input[text] text}
1218+
* - {@link input[checkbox] checkbox}
1219+
* - {@link input[radio] radio}
1220+
* - {@link input[number] number}
1221+
* - {@link input[email] email}
1222+
* - {@link input[url] url}
12231223
* - {@link ng.directive:select select}
12241224
* - {@link ng.directive:textarea textarea}
12251225
*

src/ng/exceptionHandler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
/**
44
* @ngdoc service
55
* @name $exceptionHandler
6-
* @requires $log
6+
* @requires ng.$log
77
*
88
* @description
99
* Any uncaught exception in angular expressions is delegated to this service.

src/ng/http.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ function $HttpProvider() {
174174
* @ngdoc service
175175
* @kind function
176176
* @name $http
177-
* @requires $httpBackend
178-
* @requires $browser
177+
* @requires ng.$httpBackend
179178
* @requires $cacheFactory
180179
* @requires $rootScope
181180
* @requires $q

src/ng/httpBackend.js

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ function createXhr(method) {
1717
/**
1818
* @ngdoc service
1919
* @name $httpBackend
20-
* @requires $browser
2120
* @requires $window
2221
* @requires $document
2322
*

src/ng/location.js

-2
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,6 @@ function locationGetterSetter(property, preprocess) {
489489
* @ngdoc service
490490
* @name $location
491491
*
492-
* @requires $browser
493-
* @requires $sniffer
494492
* @requires $rootElement
495493
*
496494
* @description

src/ng/timeout.js

-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ function $TimeoutProvider() {
1010
/**
1111
* @ngdoc service
1212
* @name $timeout
13-
* @requires $browser
1413
*
1514
* @description
1615
* Angular's wrapper for `window.setTimeout`. The `fn` function is wrapped into a try/catch

src/ngCookies/cookies.js

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ angular.module('ngCookies', ['ng']).
2222
/**
2323
* @ngdoc service
2424
* @name $cookies
25-
* @requires $browser
2625
*
2726
* @description
2827
* Provides read/write access to browser's cookies.

0 commit comments

Comments
 (0)