From d1987b183bf64844ab01c2f25d766c20c941a760 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jesu=CC=81s=20Rodri=CC=81guez?= Date: Tue, 13 Sep 2016 18:21:55 +0200 Subject: [PATCH] docs(di): remove InjectorMetadata mentions --- public/docs/ts/latest/guide/dependency-injection.jade | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/public/docs/ts/latest/guide/dependency-injection.jade b/public/docs/ts/latest/guide/dependency-injection.jade index d8676e1419..3629e40078 100644 --- a/public/docs/ts/latest/guide/dependency-injection.jade +++ b/public/docs/ts/latest/guide/dependency-injection.jade @@ -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. -- var injMetaUrl = 'https://angular.io/docs/ts/latest/api/core/index/InjectableMetadata-class.html'; +- var injUrl = 'https://angular.io/docs/ts/latest/api/core/index/Injectable-decorator.html'; h3#injectable Why @Injectable()? :marked - **@Injectable()** marks a class as available to an + **@Injectable()** 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()`. @@ -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 InjectableMetadata. It is in - fact `InjectableMetadata` #{_decorator}s that + is a subtype of Injectable. It is in + fact `Injectable` #{_decorator}s that identify a class as a target for instantiation by an injector. +ifDocsFor('ts') @@ -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 - InjectableMetadata #{_decorator} + Injectable #{_decorator} to make the intent clear. .callout.is-critical