Skip to content
This repository was archived by the owner on Dec 4, 2017. It is now read-only.

Commit 56ac24b

Browse files
authored
chore: fix broken links on 9/30, mostly API links (#2520)
1 parent 9b08396 commit 56ac24b

27 files changed

+43
-113
lines changed

firebase.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"rewrites": [
55
{
66
"source": "/docs/dart/latest/testing",
7-
"destination": "/docs/dart/latest/index.html"
7+
"destination":"/docs/dart/latest/guide/testing.html"
88
},
99
{
1010
"source": "/docs/dart/latest/tutorial",
1111
"destination": "/docs/dart/latest/index.html"
1212
},
1313
{
1414
"source": "/docs/js/latest/testing",
15-
"destination": "/docs/js/latest/index.html"
15+
"destination": "/docs/js/latest/guide/testing.html"
1616
},
1717
{
1818
"source": "/docs/js/latest/tutorial",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ../../../_includes/_ts-temp
1+
include ../../../_includes/_ts-temp

public/docs/dart/latest/testing/_data.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

public/docs/dart/latest/testing/application-under-test.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/dart/latest/testing/first-app-tests.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/dart/latest/testing/index.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/dart/latest/testing/jasmine-testing-101.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/dart/latest/testing/testing-an-angular-pipe.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/js/latest/cookbook/ts-to-js.jade

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,7 @@ table(width="100%")
252252
for components and directives.
253253

254254
For [inputs and outputs](../guide/template-syntax.html#inputs-outputs),
255-
we use [`@Input`](../api/core/index/Input-var.html)
256-
and [`@Output`](../api/core/index/Output-var.html) property decorators.
255+
we use `@Input` and `@Output` property decorators.
257256
They may optionally specify input and output binding names if we want them to be
258257
different from the class property names.
259258

@@ -351,10 +350,10 @@ table(width="100%")
351350

352351
We can attach additional decorators to constructor parameters
353352
to qualify the injection behavior. We can mark
354-
optional dependencies with the [`@Optional`](../api/core/index/Optional-var.html),
355-
inject host element attributes with [`@Attribute`](../api/core/index/Attribute-var.html),
356-
inject content child queries with [`@Query`](../api/core/index/Query-var.html)
357-
and inject view child queries with [`@ViewQuery`](../api/core/index/ViewQuery-var.html)).
353+
optional dependencies with the [`@Optional`](../api/core/index/Optional-decorator.html),
354+
inject host element attributes with [`@Attribute`](../api/core/index/Attribute-interface.html),
355+
inject content child queries with [`@ContentChild`](../api/core/index/ContentChild-decorator.html)
356+
and inject view child queries with [`@ViewChild`](../api/core/index/ViewChild-decorator.html)).
358357

359358
+makeExample('cb-ts-to-js/ts/app/hero-di-inject-additional.component.ts')(format="." )
360359

@@ -373,8 +372,8 @@ table(width="100%")
373372

374373
:marked
375374
We can apply other additional parameter decorators such as
376-
[`@Host`](../api/core/index/Host-var.html) and
377-
[`@SkipSelf`](../api/core/index/SkipSelf-var.html) in the same way -
375+
[`@Host`](../api/core/index/Host-decorator.html) and
376+
[`@SkipSelf`](../api/core/index/SkipSelf-decorator.html) in the same way -
378377
by adding `new ng.core.Host()` or `ng.core.SkipSelf()` in the
379378
parameters array.
380379

@@ -398,9 +397,9 @@ table(width="100%")
398397
### Host Decorators
399398

400399
We can use host property decorators to bind a host element to a component or directive.
401-
The [`@HostBinding`](../api/core/index/HostBinding-var.html) decorator
400+
The [`@HostBinding`](../api/core/index/HostBinding-interface.html) decorator
402401
binds host element properties to component data properties.
403-
The [`@HostListener`](../api/core/index/HostListener-var.html) decorator bimds
402+
The [`@HostListener`](../api/core/index/HostListener-interface.html) decorator bimds
404403
host element events to component event handlers.
405404

406405
+makeExample('cb-ts-to-js/ts/app/heroes-bindings.component.ts')(format="." )
@@ -432,16 +431,16 @@ table(width="100%")
432431
There are several property decorators for querying the descendants of
433432
a component or directive.
434433

435-
The [`@ViewChild`](../api/core/index/ViewChild-var.html) and
436-
[`@ViewChildren`](../api/core/index/ViewChildren-var.html) property decorators
434+
The [`@ViewChild`](../api/core/index/ViewChild-decorator.html) and
435+
[`@ViewChildren`](../api/core/index/ViewChildren-decorator.html) property decorators
437436
allow a component to query instances of other components that are used in
438437
its view.
439438

440439
+makeExample('cb-ts-to-js/ts/app/heroes-queries.component.ts', 'view')(format="." )
441440

442441
:marked
443-
The [`@ContentChild`](../api/core/index/ContentChild-var.html) and
444-
[`@ContentChildren`](../api/core/index/ContentChildren-var.html) property decorators
442+
The [`@ContentChild`](../api/core/index/ContentChild-decorator.html) and
443+
[`@ContentChildren`](../api/core/index/ContentChildren-decorator.html) property decorators
445444
allow a component to query instances of other components that have been projected
446445
into its view from elsewhere.
447446

public/docs/js/latest/guide/forms.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ figure.image-display
485485
.l-sub-section
486486
:marked
487487
Why "ngModel"?
488-
A directive's [exportAs](../api/core/index/DirectiveMetadata-class.html#!#exportAs) property
488+
A directive's [exportAs](../api/core/index/Directive-decorator.html) property
489489
tells Angular how to link the reference variable to the directive.
490490
We set `name` to `ngModel` because the `ngModel` directive's `exportAs` property happens to be "ngModel".
491491

@@ -497,7 +497,7 @@ figure.image-display
497497
:marked
498498
### The NgForm directive
499499
We just set a template local variable with the value of an `NgForm` directive.
500-
Why did that work? We didn't add the **[`NgForm`](../api/common/index/NgForm-directive.html) directive** explicitly.
500+
Why did that work? We didn't add the **[`NgForm`](../api/forms/index/NgForm-directive.html) directive** explicitly.
501501

502502
Angular added it surreptitiously, wrapping it around the `<form>` element
503503

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ../../../_includes/_ts-temp
1+
include ../../../_includes/_ts-temp
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
include ../../../_includes/_ts-temp
1+
include ../../../_includes/_ts-temp

public/docs/js/latest/testing/_data.json

Lines changed: 0 additions & 28 deletions
This file was deleted.

public/docs/js/latest/testing/application-under-test.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/js/latest/testing/first-app-tests.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/js/latest/testing/index.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/js/latest/testing/jasmine-testing-101.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/js/latest/testing/testing-an-angular-pipe.jade

Lines changed: 0 additions & 1 deletion
This file was deleted.

public/docs/ts/latest/glossary.jade

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -530,12 +530,11 @@ a#N
530530
:marked
531531
Read more in the page on [pipes](!{docsLatest}/guide/pipes.html).
532532

533-
- var _ProviderUrl = docsLatest+'/api/'+(lang == 'dart' ? 'angular2.core' : 'core/index')+'/Provider-class.html'
534533
:marked
535534
## Provider
536535
.l-sub-section
537536
:marked
538-
A [provider](!{_ProviderUrl}) creates a new instance of a dependency for the
537+
A _provider_ creates a new instance of a dependency for the
539538
[dependency injection](#dependency-injection) system.
540539
It relates a lookup token to code&mdash;sometimes called a "recipe"&mdash;that can create a dependency value.
541540

public/docs/ts/latest/guide/browser-support.jade

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,13 @@ table
126126
td All but Chrome and Firefox<br>Not supported in IE9
127127
tr(style="vertical-align: top")
128128
td
129-
a(href="../api/common/index/DatePipe-class.html" target="_blank") Date
129+
a(href="../api/common/index/DatePipe-pipe.html" target="_blank") Date
130130
span ,
131-
a(href="../api/common/index/CurrencyPipe-class.html" target="_blank") currency
131+
a(href="../api/common/index/CurrencyPipe-pipe.html" target="_blank") currency
132132
span ,
133-
a(href="../api/common/index/DecimalPipe-class.html" target="_blank") decimal
133+
a(href="../api/common/index/DecimalPipe-pipe.html" target="_blank") decimal
134134
span and
135-
a(href="../api/common/index/PercentPipe-class.html" target="_blank") percent
135+
a(href="../api/common/index/PercentPipe-pipe.html" target="_blank") percent
136136
span pipes
137137
td
138138
:marked

public/docs/ts/latest/guide/forms.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -502,7 +502,7 @@ figure.image-display
502502
.l-sub-section
503503
:marked
504504
Why "ngModel"?
505-
A directive's [exportAs](../api/core/index/DirectiveMetadata-class.html#!#exportAs-anchor) property
505+
A directive's [exportAs](../api/core/index/Directive-decorator.html) property
506506
tells Angular how to link the reference variable to the directive.
507507
We set `name` to `ngModel` because the `ngModel` directive's `exportAs` property happens to be "ngModel".
508508

@@ -603,7 +603,7 @@ figure.image-display
603603
.l-sub-section
604604
:marked
605605
### The NgForm directive
606-
What `NgForm` directive? We didn't add an [NgForm](../api/common/index/NgForm-directive.html) directive!
606+
What `NgForm` directive? We didn't add an [NgForm](../api/forms/index/NgForm-directive.html) directive!
607607

608608
Angular did. Angular creates and attaches an `NgForm` directive to the `<form>` tag automatically.
609609

public/docs/ts/latest/guide/lifecycle-hooks.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ figure.image-display
453453
:marked
454454
The following hooks take action based on changing values *within the child view*
455455
which can only be reached by querying for the child view via the property decorated with
456-
[@ViewChild](../api/core/index/ViewChild-var.html).
456+
[@ViewChild](../api/core/index/ViewChild-decorator.html).
457457

458458
+makeExample('lifecycle-hooks/ts/app/after-view.component.ts', 'hooks', 'AfterViewComponent (class excerpts)')(format=".")
459459
#wait-a-tick
@@ -532,7 +532,7 @@ figure.image-display
532532

533533
The following *AfterContent* hooks take action based on changing values in a *content child*
534534
which can only be reached by querying for it via the property decorated with
535-
[@ContentChild](../api/core/index/ContentChild-var.html).
535+
[@ContentChild](../api/core/index/ContentChild-decorator.html).
536536

537537
+makeExample('lifecycle-hooks/ts/app/after-content.component.ts', 'hooks', 'AfterContentComponent (class excerpts)')(format=".")
538538

public/docs/ts/latest/guide/pipes.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ figure.image-display
103103

104104
.l-sub-section
105105
:marked
106-
Learn more about the `DatePipes` format options in the [API Docs](../api/common/index/DatePipe-class.html).
106+
Learn more about the `DatePipes` format options in the [API Docs](../api/common/index/DatePipe-pipe.html).
107107

108108
:marked
109109
## Chaining pipes
@@ -403,7 +403,7 @@ figure.image-display
403403
.callout.is-helpful
404404
header Debugging with the json pipe
405405
:marked
406-
The [JsonPipe](../api/common/index/JsonPipe-class.html)
406+
The [JsonPipe](../api/common/index/JsonPipe-pipe.html)
407407
provides an easy way to diagnosis a mysteriously failing data binding or
408408
inspect an object for future binding.
409409

public/docs/ts/latest/guide/style-guide.jade

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1678,7 +1678,8 @@ a(href="#toc") Back to top
16781678

16791679
.s-rule.do
16801680
:marked
1681-
**Do** use [`@Input`](https://angular.io/docs/ts/latest/api/core/index/Input-var.html) and [`@Output`](https://angular.io/docs/ts/latest/api/core/index/Output-var.html) instead of the `inputs` and `outputs` properties of the [`@Directive`](https://angular.io/docs/ts/latest/api/core/index/Directive-decorator.html) and [`@Component`](https://angular.io/docs/ts/latest/api/core/index/Component-decorator.html) decorators:
1681+
**Do** use `@Input` and `@Output` instead of the `inputs` and `outputs` properties of the
1682+
`@Directive and `@Component` decorators:
16821683

16831684
.s-rule.do
16841685
:marked
@@ -1690,10 +1691,8 @@ a(href="#toc") Back to top
16901691

16911692
.s-why
16921693
:marked
1693-
**Why?** If you ever need to rename the property or event name associated to
1694-
[`@Input`](https://angular.io/docs/ts/latest/api/core/index/Input-var.html) or
1695-
[`@Output`](https://angular.io/docs/ts/latest/api/core/index/Output-var.html)
1696-
you can modify it on a single place.
1694+
**Why?** If you ever need to rename the property or event name associated with
1695+
`@Input` or `@Output`, you can modify it a single place.
16971696

16981697
.s-why
16991698
:marked

public/docs/ts/latest/guide/template-syntax.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ table
489489
If we must read a target element property or call one of its methods,
490490
we'll need a different technique.
491491
See the API reference for
492-
[viewChild](../api/core/index/ViewChild-var.html) and
493-
[contentChild](../api/core/index/ContentChild-var.html).
492+
[viewChild](../api/core/index/ViewChild-decorator.html) and
493+
[contentChild](../api/core/index/ContentChild-decorator.html).
494494

495495
:marked
496496
### Binding target
@@ -885,7 +885,7 @@ block style-property-name-dart-diff
885885
The `ngModel` input property sets the element's value property and the `ngModelChange` output property
886886
listens for changes to the element's value.
887887
The details are specific to each kind of element and therefore the `NgModel` directive only works for elements,
888-
such as the input text box, that are supported by a [ControlValueAccessor](../api/common/index/ControlValueAccessor-interface.html).
888+
such as the input text box, that are supported by a [ControlValueAccessor](../api/forms/index/ControlValueAccessor-interface.html).
889889
We can't apply `[(ngModel)]` to our custom components until we write a suitable *value accessor*,
890890
a technique that is beyond the scope of this chapter.
891891

public/docs/ts/latest/guide/upgrade.jade

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,7 +1414,7 @@ code-example(format="").
14141414
### Create the _Routing Module_
14151415
A router needs configuration whether it's the Angular 1 or Angular 2 or any other router.
14161416

1417-
The details of Angular 2 router configuration are best left to the [Routing](../router.html) documentation
1417+
The details of Angular 2 router configuration are best left to the [Routing documentation](router.html)
14181418
which recommends that you create a `NgModule` dedicated to router configuration
14191419
(called a _Routing Module_):
14201420

@@ -1448,7 +1448,7 @@ code-example(format="").
14481448
+makeExample('upgrade-phonecat-3-final/ts/app/phone-list/phone-list.template.html', 'list', 'app/phone-list/phone-list.template.html (list with links)')(format='.')
14491449
.l-sub-section
14501450
:marked
1451-
See the [Routing](../router.html) page for details.
1451+
See the [Routing](router.html) page for details.
14521452

14531453
:marked
14541454
### Bootstrap as an Angular 2 app

public/docs/ts/latest/quickstart.jade

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ block install-packages
201201
browser.
202202

203203
The QuickStart application doesn't do anything else, so you don't need any other modules. In a real
204-
application, you'd likely import [`FormsModule`](../latest/api/forms/index/FormsModule-class
205-
.html) as well as [`RouterModule`](../latest/api/router/index/RouterModule-class.html) and
204+
application, you'd likely import [`FormsModule`](../latest/api/forms/index/FormsModule-class.html)
205+
as well as [`RouterModule`](../latest/api/router/index/RouterModule-class.html) and
206206
[`HttpModule`](../latest/api/http/index/HttpModule-class.html). These are introduced in the
207207
[Tour of Heroes Tutorial](./tutorial/).
208208

@@ -227,8 +227,7 @@ p.
227227
The QuickStart application has the same essential structure as any other Angular component:
228228

229229
* **An import statement**. Importing gives your component access to
230-
Angular's core [`@Component` decorator function](../latest/api/core/index/Component-decorator
231-
.html).
230+
Angular's core [`@Component` decorator function](../latest/api/core/index/Component-decorator.html).
232231
* **A @Component #{_decorator}** that associates *metadata* with the
233232
`AppComponent` component class:
234233

0 commit comments

Comments
 (0)