-
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.
| ## Tabla de contenidos | ||
|
|
||
| [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.
| [Dependiencias en toda la aplicación](#app-wide-dependencies) | ||
|
|
||
| [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.
| [Define dependencies with providers](#providers) | ||
| [Definir dependencias con proveedores](#providers) | ||
| * [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.
| ## 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...
| 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.
| 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
| 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
| 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
| ### 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