Skip to content

Commit 19efd78

Browse files
committed
docs: intra-site links should be relative
Contributes to angular#2772.
1 parent 5e79a1a commit 19efd78

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

+5-5
Original file line numberDiff line numberDiff line change
@@ -388,10 +388,10 @@ block ctor-syntax
388388
We call that property within our `getHeroes` method when anyone asks for heroes.
389389

390390
//- FIXME refer to Dart API when that page becomes available.
391-
- var injMetaUrl = 'https://angular.io/docs/ts/latest/api/core/index/InjectableMetadata-class.html';
391+
- var injUrl = '../api/core/index/Injectable-decorator.html';
392392
h3#injectable Why @Injectable()?
393393
:marked
394-
**<a href="#{injMetaUrl}">@Injectable()</a>** marks a class as available to an
394+
**<a href="#{injUrl}">@Injectable()</a>** marks a class as available to an
395395
injector for instantiation. Generally speaking, an injector will report an
396396
error when trying to instantiate a class that is not marked as
397397
`@Injectable()`.
@@ -423,8 +423,8 @@ block injectable-not-always-needed-in-ts
423423
We *can* add it if we really want to. It isn't necessary because the
424424
`HeroesComponent` is already marked with `@Component`, and this
425425
!{_decorator} class (like `@Directive` and `@Pipe`, which we'll learn about later)
426-
is a subtype of <a href="#{injMetaUrl}">InjectableMetadata</a>. It is in
427-
fact `InjectableMetadata` #{_decorator}s that
426+
is a subtype of <a href="#{injUrl}">Injectable</a>. It is in
427+
fact `Injectable` #{_decorator}s that
428428
identify a class as a target for instantiation by an injector.
429429

430430
+ifDocsFor('ts')
@@ -442,7 +442,7 @@ block injectable-not-always-needed-in-ts
442442
for _every class with at least one decorator_.
443443

444444
While any decorator will trigger this effect, mark the service class with the
445-
<a href="#{injMetaUrl}">InjectableMetadata</a> #{_decorator}
445+
<a href="#{injUrl}">Injectable</a> #{_decorator}
446446
to make the intent clear.
447447

448448
.callout.is-critical

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ block ctor-syntax
388388
We call that property within our `getHeroes` method when anyone asks for heroes.
389389

390390
//- FIXME refer to Dart API when that page becomes available.
391-
- var injUrl = 'https://angular.io/docs/ts/latest/api/core/index/Injectable-decorator.html';
391+
- var injUrl = '../api/core/index/Injectable-decorator.html';
392392
h3#injectable Why @Injectable()?
393393
:marked
394394
**<a href="#{injUrl}">@Injectable()</a>** marks a class as available to an

public/docs/ts/latest/guide/npm-packages.jade

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ a(id="dependencies")
7474
***@angular/platform-browser*** - Everything DOM and browser related, especially the pieces that help render into DOM.
7575
This package also includes the bootstrapStatic method for bootstrapping applications for production builds that pre-compile templates offline.
7676

77-
***@angular/platform-browser-dynamic*** - Includes [Providers](https://angular.io/docs/ts/latest/api/core/index/Provider-type-alias.html) and a [bootstrap](https://angular.io/docs/ts/latest/guide/ngmodule.html#!#bootstrap) method for applications that
77+
***@angular/platform-browser-dynamic*** - Includes [Providers](../api/core/index/Provider-type-alias.html) and a [bootstrap](ngmodule.html#!#bootstrap) method for applications that
7878
compile templates on the client. Don’t use offline compilation.
7979
Use this package for bootstrapping during development and for bootstrapping plunker samples.
8080

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -1821,7 +1821,7 @@ a(href="#toc") Back to top
18211821

18221822
.s-why.s-why-last
18231823
:marked
1824-
**Why?** Angular allows for an [alternative syntax](https://angular.io/docs/ts/latest/guide/template-syntax.html#!#binding-syntax) `on-*`. If the event itself was prefixed with `on` this would result in an `on-onEvent` binding expression.
1824+
**Why?** Angular allows for an [alternative syntax](template-syntax.html#!#binding-syntax) `on-*`. If the event itself was prefixed with `on` this would result in an `on-onEvent` binding expression.
18251825

18261826
+makeExample('style-guide/ts/05-16/app/heroes/hero.component.avoid.ts', 'example', 'app/heroes/hero.component.ts')(avoid=1)
18271827
:marked

0 commit comments

Comments
 (0)