-
Notifications
You must be signed in to change notification settings - Fork 27
trasnlate ts-cookbook-dependencyinjection #71
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excelente el español pero hay que hacer unos cambios al formato.
|
||
[Application-wide dependencies](#app-wide-dependencies) | ||
[Dependiencias en toda la aplicación](#app-wide-dependencies) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Creo que debería haber una línea en blanco entre el inglés y el español? para que funcione el snippet de show english
. Y en general. En jade si no dejas una linea vacia entre los dos elementos el compilador va a pensar que la segunda linea es una continuación del contenido.
|
||
[External module configuration](#external-module-configuration) | ||
[Configuración del módulo externo](#external-module-configuration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Misma cosa que el comentario anterior, revisa todos esos, pero no voy a poner comentarios en todos para no spamiarte.
* [The *provide* object literal](#provide) | ||
* [El objeto *proveedor* literalmente](#provide) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
En las listas que tienen * o el numerito 1. no hay que dejar una linea vacia entre contenido.
@@ -55,23 +86,41 @@ include ../_util-fns | |||
## Application-wide dependencies | |||
Register providers for dependencies used throughout the application in the root application component, `AppComponent`. | |||
|
|||
## Dependencias en toda la aplicación |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Los titulos y el contenido deben ir debajo del equivalente en inglés, asi:
## Application-wide dependencies
## Dependencias en toda la aplicación
Register providers for...
Registra proveedores para...
@@ -100,17 +160,31 @@ a(id="nested-dependencies") | |||
It shouldn't care. | |||
It's the dependency injection's job to create and cache that service. | |||
|
|||
## *@Injectable* y dependencias de servicio anidadas |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
El titulo debe ir debajo del original en inglés.
<a id="class-interface"></a> | ||
### class-interface | ||
In the previous *Hero of the Month* example, we used the `MinimalLogger` class | ||
as the token for a provider of a `LoggerService`. | ||
|
||
### clase-interfaz |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debe ir debajo del original
@@ -576,35 +999,70 @@ a(id="tokens") | |||
They exist only in the TypeScript design space. | |||
They disappear after the code is transpiled to JavaScript. | |||
|
|||
#### Por qué *MinimalLogger* es una clase y no una interfaz. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debe ir debajo del original
@@ -617,34 +1075,63 @@ a(id="di-inheritance") | |||
we must re-provide and re-inject them in the derived class | |||
and then pass them down to the base class through the constructor. | |||
|
|||
## Inyectar en una clase derivada |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
debe ir debajo del original
+makeExample('cb-dependency-injection/ts/app/parent-finder.component.ts','alex-class-signature','parent-finder.component.ts (Alex class signature)')(format='.') | ||
:marked | ||
The `CraigComponent` tries to inject `Base` into its `alex` constructor parameter and reports if it succeeded. | ||
El componente `CraigComponent` intenta inyectar la clase`Base` dentro del parámetro `alex` del constructor e informa si tuvo éxito. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debe ir una linea en blanco aca
@@ -802,47 +1409,82 @@ a(id="parent-token") | |||
:marked | |||
### The *Parent* class-interface | |||
We [learned earlier](#class-interface) that a *class-interface* is an abstract class used as an interface rather than as a base class. | |||
|
|||
### La clase-interfaz *Padre* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Debe ir debajo del original
this PR is realeated to issu 33