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

docs: intra-site links should be relative #2773

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions public/docs/ts/_cache/guide/dependency-injection.jade
Original file line number Diff line number Diff line change
Expand Up @@ -388,10 +388,10 @@ block ctor-syntax
We call that property within our `getHeroes` method when anyone asks for heroes.

//- FIXME refer to Dart API when that page becomes available.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this FIXME comment still needed?

Copy link
Contributor Author

@chalin chalin Nov 9, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No it isn't; thanks for the reminder, I had meant to remove that comment. I'll do so in a follow-up PR. #2783 is the tracker issue.

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

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

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

.callout.is-critical
Expand Down
2 changes: 1 addition & 1 deletion public/docs/ts/latest/guide/dependency-injection.jade
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ block ctor-syntax
We call that property within our `getHeroes` method when anyone asks for heroes.

//- FIXME refer to Dart API when that page becomes available.
- var injUrl = 'https://angular.io/docs/ts/latest/api/core/index/Injectable-decorator.html';
- var injUrl = '../api/core/index/Injectable-decorator.html';
h3#injectable Why @Injectable()?
:marked
**<a href="#{injUrl}">@Injectable()</a>** marks a class as available to an
Expand Down
2 changes: 1 addition & 1 deletion public/docs/ts/latest/guide/npm-packages.jade
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ a(id="dependencies")
***@angular/platform-browser*** - Everything DOM and browser related, especially the pieces that help render into DOM.
This package also includes the bootstrapStatic method for bootstrapping applications for production builds that pre-compile templates offline.

***@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
***@angular/platform-browser-dynamic*** - Includes [Providers](../api/core/index/Provider-type-alias.html) and a [bootstrap](ngmodule.html#!#bootstrap) method for applications that
compile templates on the client. Don’t use offline compilation.
Use this package for bootstrapping during development and for bootstrapping plunker samples.

Expand Down
2 changes: 1 addition & 1 deletion public/docs/ts/latest/guide/style-guide.jade
Original file line number Diff line number Diff line change
Expand Up @@ -1821,7 +1821,7 @@ a(href="#toc") Back to top

.s-why.s-why-last
:marked
**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.
**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.

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