Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

trasnlate ts-cookbook-dependencyinjection #71

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

OdalysMn
Copy link

@OdalysMn OdalysMn commented Sep 21, 2016

this PR is realeated to issu 33

Copy link
Contributor

@dvidsilva dvidsilva left a 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)
Copy link
Contributor

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)
Copy link
Contributor

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)
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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
Copy link
Contributor

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.
Copy link
Contributor

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*
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants