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

Commit b21c90c

Browse files
Priestchnaomiblack
authored andcommitted
fix(doc): fix 404 problem of some api url
1 parent e6655fa commit b21c90c

File tree

9 files changed

+34
-34
lines changed

9 files changed

+34
-34
lines changed

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

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ table(width="100%")
155155

156156
Most Angular 2 classes have one or more TypeScript *decorators*
157157
attached to provide configuration and metadata. For example,
158-
a component must have a [`@Component`](../api/core/Component-decorator.html) decorator.
158+
a component must have a [`@Component`](../api/core/index/Component-decorator.html) decorator.
159159

160160
+makeExample('cb-ts-to-js/ts/app/hero.component.ts', 'metadata')(format="." )
161161

@@ -168,7 +168,7 @@ table(width="100%")
168168
Each item in the array corresponds to a TypeScript decorator.
169169

170170
In the following example, we create a new instance of `Component` that corresponds
171-
to the [`@Component`](../api/core/Component-decorator.html) TypeScript decorator.
171+
to the [`@Component`](../api/core/index/Component-decorator.html) TypeScript decorator.
172172

173173
+makeExample('cb-ts-to-js/js/app/hero.component.js', 'metadata')(format="." )
174174

@@ -252,8 +252,8 @@ 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/Input-var.html)
256-
and [`@Output`](../api/core/Output-var.html) property decorators.
255+
we use [`@Input`](../api/core/index/Input-var.html)
256+
and [`@Output`](../api/core/index/Output-var.html) property decorators.
257257
They may optionally specify input and output binding names if we want them to be
258258
different from the class property names.
259259

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

352352
We can attach additional decorators to constructor parameters
353353
to qualify the injection behavior. We can mark
354-
optional dependencies with the [`@Optional`](../api/core/Optional-var.html),
355-
inject host element attributes with [`@Attribute`](../api/core/Attribute-var.html),
356-
inject content child queries with [`@Query`](../api/core/Query-var.html)
357-
and inject view child queries with [`@ViewQuery`](../api/core/ViewQuery-var.html)).
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)).
358358

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

@@ -374,8 +374,8 @@ table(width="100%")
374374

375375
:marked
376376
We can apply other additional parameter decorators such as
377-
[`@Host`](../api/core/Host-var.html) and
378-
[`@SkipSelf`](../api/core/SkipSelf-var.html) in the same way -
377+
[`@Host`](../api/core/index/Host-var.html) and
378+
[`@SkipSelf`](../api/core/index/SkipSelf-var.html) in the same way -
379379
by adding `new ng.core.Host()` or `ng.core.SkipSelf()` in the
380380
parameters array.
381381

@@ -399,9 +399,9 @@ table(width="100%")
399399
### Host Decorators
400400

401401
We can use host property decorators to bind a host element to a component or directive.
402-
The [`@HostBinding`](../api/core/HostBinding-var.html) decorator
402+
The [`@HostBinding`](../api/core/index/HostBinding-var.html) decorator
403403
binds host element properties to component data properties.
404-
The [`@HostListener`](../api/core/HostListener-var.html) decorator bimds
404+
The [`@HostListener`](../api/core/index/HostListener-var.html) decorator bimds
405405
host element events to component event handlers.
406406

407407
+makeExample('cb-ts-to-js/ts/app/heroes-bindings.component.ts')(format="." )
@@ -433,16 +433,16 @@ table(width="100%")
433433
There are several property decorators for querying the descendants of
434434
a component or directive.
435435

436-
The [`@ViewChild`](../api/core/ViewChild-var.html) and
437-
[`@ViewChildren`](../api/core/ViewChildren-var.html) property decorators
436+
The [`@ViewChild`](../api/core/index/ViewChild-var.html) and
437+
[`@ViewChildren`](../api/core/index/ViewChildren-var.html) property decorators
438438
allow a component to query instances of other components that are used in
439439
its view.
440440

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

443443
:marked
444-
The [`@ContentChild`](../api/core/ContentChild-var.html) and
445-
[`@ContentChildren`](../api/core/ContentChildren-var.html) property decorators
444+
The [`@ContentChild`](../api/core/index/ContentChild-var.html) and
445+
[`@ContentChildren`](../api/core/index/ContentChildren-var.html) property decorators
446446
allow a component to query instances of other components that have been projected
447447
into its view from elsewhere.
448448

public/docs/ts/latest/guide/dependency-injection.jade

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,7 +758,7 @@ block what-should-we-use-as-token
758758
There is no interface type information left for Angular to find at runtime.
759759

760760
//- FIXME simplify once APIs are defined for Dart.
761-
- var opaquetoken = _docsFor == 'dart' ? '<b>OpaqueToken</b>' : '<a href="../api/core/OpaqueToken-class.html"><b>OpaqueToken</b></a>'
761+
- var opaquetoken = _docsFor == 'dart' ? '<b>OpaqueToken</b>' : '<a href="../api/core/index/OpaqueToken-class.html"><b>OpaqueToken</b></a>'
762762
:marked
763763
### OpaqueToken
764764

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ figure.image-display
492492
.l-sub-section
493493
:marked
494494
Why "ngModel"?
495-
A directive's [exportAs](../api/core/DirectiveMetadata-class.html#!#exportAs) property
495+
A directive's [exportAs](../api/core/index/DirectiveMetadata-class.html#!#exportAs-anchor) property
496496
tells Angular how to link the reference variable to the directive.
497497
We set `name` to `ngModel` because the `ngModel` directive's `exportAs` property happens to be "ngModel".
498498

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ figure.image-display
403403
+makeExample('lifecycle-hooks/ts/app/on-changes.component.ts', 'ng-on-changes', 'OnChangesComponent (ngOnChanges)')(format=".")
404404
:marked
405405
The `ngOnChanges` method takes an object that maps each changed property name to a
406-
[SimpleChange](../api/core/SimpleChange-class.html) object with the current and previous property values.
406+
[SimpleChange](../api/core/index/SimpleChange-class.html) object with the current and previous property values.
407407
We iterate over the changed properties and log them.
408408

409409
The input properties for our example `OnChangesComponent` are `hero` and `power`.
@@ -462,7 +462,7 @@ figure.image-display
462462
.l-sub-section
463463
:marked
464464
We also see that the `ngOnChanges` method is called in contradiction of the
465-
[incorrect API documentation](../api/core/DoCheck-interface.html).
465+
[incorrect API documentation](../api/core/index/DoCheck-class.html).
466466

467467
.l-main-section
468468
:marked
@@ -478,7 +478,7 @@ figure.image-display
478478
:marked
479479
The following hooks take action based on changing values *within the child view*
480480
which we can only reach by querying for the child view via the property decorated with
481-
[@ViewChild](../api/core/ViewChild-var.html).
481+
[@ViewChild](../api/core/index/ViewChild-var.html).
482482

483483
+makeExample('lifecycle-hooks/ts/app/after-view.component.ts', 'hooks', 'AfterViewComponent (class excerpts)')(format=".")
484484
.a(id="wait-a-tick")
@@ -559,7 +559,7 @@ figure.image-display
559559

560560
The following *AfterContent* hooks take action based on changing values in a *content child*
561561
which we can only reach by querying for it via the property decorated with
562-
[@ContentChild](../api/core/ContentChild-var.html).
562+
[@ContentChild](../api/core/index/ContentChild-var.html).
563563

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

public/docs/ts/latest/guide/router-deprecated.jade

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ code-example(format="").
892892
## Router Lifecycle Hooks
893893

894894
Angular components have [lifecycle hooks](lifecycle-hooks.html). For example, Angular calls the hook methods of the
895-
[OnInit](../api/core/OnInit-interface.html) and [OnDestroy](../api/core/OnDestroy-interface.html)
895+
[OnInit](../api/core/index/OnInit-class.html) and [OnDestroy](../api/core/index/OnDestroy-class.html)
896896
interfaces when it creates and destroys components.
897897

898898
The router also has hooks for *its* lifecycle such as
@@ -1369,8 +1369,8 @@ code-example(format="." language="bash").
13691369
How do we ensure that happens if not in the constructor?
13701370

13711371
Angular detects when a component has certain lifecycle methods like
1372-
[ngOnInit](../api/core/OnInit-interface.html) and
1373-
[ngOnDestroy](../api/core/OnDestroy-interface.html) and calls
1372+
[ngOnInit](../api/core/index/OnInit-class.html) and
1373+
[ngOnDestroy](../api/core/index/OnDestroy-class.html) and calls
13741374
them
13751375
at the appropriate moment.
13761376

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1516,8 +1516,8 @@ code-example(format="." language="bash").
15161516
How do we ensure that happens if not in the constructor?
15171517

15181518
Angular detects when a component has certain lifecycle methods like
1519-
[ngOnInit](../api/core/OnInit-interface.html) and
1520-
[ngOnDestroy](../api/core/OnDestroy-interface.html) and calls
1519+
[ngOnInit](../api/core/index/OnInit-class.html) and
1520+
[ngOnDestroy](../api/core/index/OnDestroy-class.html) and calls
15211521
them
15221522
at the appropriate moment.
15231523

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,7 @@ a(href="#toc") Back to top
14451445

14461446
.s-rule.do
14471447
:marked
1448-
**Do** use [`@Input`](https://angular.io/docs/ts/latest/api/core/Input-var.html) and [`@Output`](https://angular.io/docs/ts/latest/api/core/Output-var.html) instead of the `inputs` and `outputs` properties of the [`@Directive`](https://angular.io/docs/ts/latest/api/core/Directive-decorator.html) and [`@Component`](https://angular.io/docs/ts/latest/api/core/Component-decorator.html) decorators:
1448+
**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:
14491449

14501450
.s-rule.do
14511451
:marked
@@ -1457,7 +1457,7 @@ a(href="#toc") Back to top
14571457

14581458
.s-why
14591459
:marked
1460-
**Why?** If we ever need to rename the property or event name associated to [`@Input`](https://angular.io/docs/ts/latest/api/core/Input-var.html) or [`@Output`](https://angular.io/docs/ts/latest/api/core/Output-var.html) we can modify it on a single place.
1460+
**Why?** If we ever need to rename the property or event name associated to [`@Input`](https://angular.io/docs/ts/latest/api/core/index/Input-var.html) or [`@Output`](https://angular.io/docs/ts/latest/api/core/index/Output-var.html) we can modify it on a single place.
14611461

14621462
.s-why
14631463
:marked

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

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

496496
// TODO (global): once we have api docs everywhere, change /docs/ts/latest/ to ../
497497
@@ -783,7 +783,7 @@ block style-property-name-dart-diff
783783
<a id="custom-event"></a>
784784
### Custom events with EventEmitter
785785

786-
Directives typically raise custom events with an Angular [EventEmitter](../api/core/EventEmitter-class.html).
786+
Directives typically raise custom events with an Angular [EventEmitter](../api/core/index/EventEmitter-class.html).
787787
A directive creates an `EventEmitter` and exposes it as a property.
788788
The directive calls `EventEmitter.emit(payload)` to fire an event, passing in a message payload that can be anything.
789789
Parent directives listen for the event by binding to this property and accessing the payload through the `$event` object.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,7 @@ figure.image-display
345345
In Angular 2 things are different. While change detection still
346346
occurs after every event, no one needs to call `scope.$apply()` for
347347
that to happen. This is because all Angular 2 code runs inside something
348-
called the [Angular zone](../api/core/NgZone-class.html). Angular always
348+
called the [Angular zone](../api/core/index/NgZone-class.html). Angular always
349349
knows when the code finishes, so it also knows when it should kick off
350350
change detection. The code itself doesn't have to call `scope.$apply()`
351351
or anything like it.
@@ -376,7 +376,7 @@ figure.image-display
376376
the component's inputs will be watched using Angular 1 change detection.
377377
When those inputs change, the corresponding properties in the component
378378
are set. We can also hook into the changes by implementing the
379-
[OnChanges](../api/core/OnChanges-interface.html) interface in the component,
379+
[OnChanges](../api/core/index/OnChanges-class.html) interface in the component,
380380
just like we could if it hadn't been downgraded.
381381

382382
Correspondingly, when we upgrade an Angular 1 component and use it from Angular 2,

0 commit comments

Comments
 (0)