From f6936406ca557f84ca752f3173a9a75db6517fef Mon Sep 17 00:00:00 2001 From: Antonio Cardenas Date: Tue, 6 Apr 2021 17:40:39 -0600 Subject: [PATCH] docs: translate tutorial/toh-pt2.md (#280) --- aio/content/marketing/presskit.html | 404 ++++++++++++++++------------ aio/content/tutorial/toh-pt2.en.md | 253 +++++++++++++++++ aio/content/tutorial/toh-pt2.md | 220 +++++++-------- 3 files changed, 591 insertions(+), 286 deletions(-) create mode 100644 aio/content/tutorial/toh-pt2.en.md diff --git a/aio/content/marketing/presskit.html b/aio/content/marketing/presskit.html index 4ae5b7cca4..a239507618 100644 --- a/aio/content/marketing/presskit.html +++ b/aio/content/marketing/presskit.html @@ -1,18 +1,19 @@
-

Press kit

+

Carpeta de prensa

-

ANGULAR LOGO

+

LOGO DE ANGULAR

- The logo graphics available for download on this page are provided under + Los gráficos del logotipo disponibles para descargar en esta página se proporcionan en CC BY 4.0. - This means that you can pretty much do what you like with it including printing it on shirts, creating your own variations, or getting it tattooed over your navel. + Esto significa que puedes hacer lo que quieras con él, incluso imprimirlo en camisetas, crear tu + propias variaciones, o tatuartele sobre el ombligo.

-

We do ask that you not use the rest of the site graphics in other contexts to avoid confusion.

+

Te pedimos que no utilices el resto de los gráficos del sitio en otros contextos para evitar confusiones.

@@ -23,13 +24,15 @@ Full color logo Angular
-

FULL COLOR LOGO

+

LOGOTIPO A TODO COLOR

@@ -44,13 +47,15 @@
-

ONE COLOR LOGO

+

LOGOTIPO DE UN COLOR

@@ -61,17 +66,20 @@
- Transparent logo Angular + Transparent logo Angular
-

ONE COLOR INVERSE LOGO

+

LOGOTIPO INVERSO DE UN COLOR

  • - Angular Logo White Semi-Transparent (png) - Download + Logo Angular White Semi-Transparent (png) - Descargar
  • - Angular Logo Semi-Transparent (svg) - Download + Logo Angular Semi-Transparente (svg) - Descargar
@@ -81,7 +89,7 @@
-

BRAND ICONS

+

ICONOS DE MARCA

@@ -89,16 +97,18 @@
- Animations Icon + Icono de Animaciones
-

ANIMATIONS

+

ANIMACIONES

@@ -108,16 +118,18 @@
- Augury Icon + Icono de Augury

AUGURY

@@ -127,35 +139,60 @@
- CDK Icon + Icono de CDK
-

COMPONENT DEV KIT (CDK)

+

KIT DE DESARROLLO DE COMPONENTES (CDK)

+
+
+
+ Icono de el CLI +
+
+

CLI

+ +
+
+
+
- CLI Icon + Icono de Compilador
-

CLI

+

COMPILADOR

@@ -165,16 +202,18 @@
- Compiler Icon + Icono de Componentes Web
-

COMPILER

+

COMPONENTES WEB

@@ -184,16 +223,18 @@
- Components Icon + Icono de Formularios
-

WEB COMPONENTS

+

FORMULARIOS

@@ -203,35 +244,18 @@
- Forms Icon -
-
-

FORMS

- -
-
-
- -
-
-
- HTTP Icon + Icono de HTTP

HTTP

@@ -241,16 +265,18 @@
- i18n Icon + Icono de i18n

i18n

@@ -260,16 +286,18 @@
- Karma Icon + Icono de Karma

KARMA

@@ -279,16 +307,18 @@
- Labs Icon + Icono de Labs

LABS

@@ -298,16 +328,18 @@
- Language Services Icon + Icono de Language Services

LANGUAGE SERVICES

  • - Language Services Icon (png) - Download + Icono de Language Services (png) - Descargar
  • - Language Services Icon (svg) - Download + Icono de Language Services (svg) - Descargar
@@ -317,16 +349,18 @@
- Material Icon + Icono de Material

MATERIAL

@@ -336,16 +370,18 @@
- Protractor Icon + Icono de Protractor

PROTRACTOR

@@ -355,16 +391,18 @@
- PWA Icon + Icono de PWA

PWA

@@ -374,16 +412,18 @@
- Router Icon + Icono de Router

ROUTER

@@ -393,16 +433,18 @@
- Universal Icon + Icono Universal

UNIVERSAL

@@ -412,7 +454,7 @@
-

CONCEPT & FEATURE ICONS

+

ICONOS DE CONCEPTO Y CARACTERÍSTICAS

@@ -420,16 +462,19 @@
- Dependency Injection Icon + Icono de inyección de dependencia
-

DEPENDENCY INJECTION

+

INYECCIÓN DE DEPENDENCIA

  • - Dependency Injection Icon (png) - Download + Icono de inyección de dependencia (png) - Descargar
  • - Dependency Injection Icon (svg) - Download + Icono de inyección de dependencia (svg) - Descargar
@@ -439,16 +484,18 @@
- Lazy Loading Icon + Icono de carga diferida

LAZY LOADING

@@ -458,16 +505,18 @@
- Libraries Icon + Icono de bibliotecas
-

LIBRARIES

+

Bibliotecas

@@ -477,16 +526,18 @@
- Performance Icon + Icono de rendimiento
-

PERFORMANCE

+

RENDIMIENTO

@@ -496,16 +547,18 @@
- Templates Icon + Icono de plantillas
-

TEMPLATES

+

PLANTILLAS

@@ -515,98 +568,113 @@
-

PRESS AND MEDIA

-

For inquiries regarding press and media please contact us at - press@angular.io.

+

PRENSA Y MEDIOS

+

Para consultas sobre prensa y medios, contáctenos en + press@angular.io.

-

BRAND NAMES

-

Angular

-

The name Angular represents the work and promises provided to you by the Angular team.

+

NOMBRES DE MARCAS

+

Angular

+

El Nombre Angular representa el trabajo y las promesas que le proporcionó el equipo de Angular.

-

When not specified, Angular is assumed to be referring to the latest and greatest stable version from the Angular Team.

+

Cuando no se especifica, se supone que Angular se refiere a la última y mejor versión estable del equipo de + Angular.

+

Ejemplo

+

Versión v4.1 ya disponible : Nos complace anunciar que la última versión de Angular ya está + disponible. ¡Mantenerse actualizado es fácil!

-

Example

-

Version v4.1 now available - We are pleased to announce that the latest release of Angular is now available. Staying up to date is easy!

+

Ejemplo

-

Example

+

Correcto: "Nuevo *ngIf capacidades—nuevo en la versión 4.0 es la capacidad de + ..."

+

Incorrecto: "Nuevo *ngIf capacidades en Angular 4—Angular 4 + introduce la capacidad de ..."

-

Correct: "New *ngIf capabilities—new in version 4.0 is the ability to ..."

-

Incorrect: "New *ngIf capabilities in Angular 4—Angular 4 introduces the ability to ..."

+

Razonamiento

-

Reasoning

+

Al no usar "Angular 4" en el título, el contenido aún se siente aplicable y útil después de que se hayan + lanzado las versiones 5, 6, 7, ya que es poco probable que la sintaxis cambie a corto y mediano plazo.

-

By not using “Angular 4” in the title, the content still feels applicable and useful after version 5, 6, 7 have been released, as the syntax is unlikely to change in the short and medium term.

+

AngularJS

-

AngularJS

+

AngularJS es la serie v1.x de trabajo y promesas proporcionadas por el equipo de Angular.

-

AngularJS is the v1.x series of work and promises provided by the Angular team.

+

Ejemplos

+
    +
  1. AngularJS es uno de los marcos más utilizados en la web en la actualidad (por número de proyectos).
  2. +
  3. Millones de desarrolladores están construyendo actualmente con AngularJS.
  4. +
  5. Los desarrolladores están comenzando a actualizar de AngularJS a Angular.
  6. +
  7. Estoy actualizando mi aplicación de AngularJS a Angular.
  8. +
  9. Estoy usando AngularJS Material en este proyecto.
  10. +
-

Examples

-
    -
  1. AngularJS is one of the most used framework on the web today (by number of projects).
  2. -
  3. Millions of developers are currently building with AngularJS.
  4. -
  5. Developers are beginning to upgrade from AngularJS to Angular.
  6. -
  7. I’m upgrading my application from AngularJS to Angular.
  8. -
  9. I'm using AngularJS Material on this project.
  10. -
- -

AngularJS projects should use the +

Los proyectos de AngularJS deben usar el - original AngularJS logo / icon, and not the Angular icon.

+ logo original de AngularJS / icono, y no el icono de Angular.

- AngularJS Logo + AngularJS Logo -

Angular Material

+

Angular Material

-

This is the work being performed by the Angular team to provide Material Design components for Angular applications.

+

Este es el trabajo que está realizando el equipo de Angular para proporcionar componentes de Material Design + para aplicaciones Angular.

-

AngularJS Material

+

Material de AngularJS

-

This is the work being performed by the Angular team on Material Design components that are compatible with AngularJS.

+

Este es el trabajo que está realizando el equipo de Angular en los componentes de Material Design que son + compatibles con AngularJS.

-

3rd Party Projects

+

Proyectos de terceros

-

X for Angular

+

X para Angular

-

3rd parties should use the terminology “X for Angular” or “ng-X” for software projects. Projects should avoid the use of Angular X (e.g. Angular UI Toolkit), as it could create authorship confusion. This rule does not apply to events or meetup groups.

+

Los terceros deben utilizar la terminología "X para Angular" o "ng-X" para proyectos de software. Los + proyectos deben evitar el uso de Angular X (por ejemplo, Angular UI Toolkit), ya que podría crear confusión en + la autoría. Esta regla no se aplica a eventos o grupos de reuniones.

-

Developers should avoid using Angular version numbers in project names, as this will artificially limit their projects by tying them to a point in time of Angular, or will require renaming over time.

+

Los desarrolladores deben evitar el uso de números de versión de Angular en los nombres de los proyectos, ya + que esto limitará artificialmente sus proyectos al vincularlos a un punto en el tiempo de Angular, o requerirá + un cambio de nombre con el tiempo.

-

Where a codename or shortname is used, such as on npm or github, some are acceptable, some are not acceptable.

+

Cuando se usa un nombre en clave o un nombre abreviado, como en npm o github, algunos son aceptables, otros + no.

- Do not use -
    -
  • ng2-
  • -
  • angular2-
  • -
+ No utilices +
    +
  • ng2-
  • +
  • angular2-
  • +
- OK to use -
    -
  • ng-
  • -
  • angular-
  • -
+ Bien para usar +
    +
  • ng-
  • +
  • angular-
  • +
-

As always, component and directive selectors should not begin with “ng-” selectors as this will conflict with components and directives provided by the Angular team.

+

Como siempre, los selectores de componentes y directivas no deben comenzar con selectores "ng-", ya que esto + entrará en conflicto con los componentes y las directivas proporcionadas por el equipo de Angular.

-

Examples

-
    -
  • The ng-BE team just launched ng-health to help developers track their own health.
  • -
  • I’m going to use NativeScript for Angular to take advantage of native UI widgets.
  • -
  • ReallyCoolTool for Angular.
  • -
  • ReallyCoolTool for AngularJS.
  • -
+

Ejemplos

+
    +
  • El equipo ng-BE acaba de lanzar ng-health Para ayudar a los desarrolladores a rastrear su + propia salud.
  • +
  • Voy a usar NativeScript para Angular para aprovechar los widgets de IU nativos.
  • +
  • ReallyCoolTool para Angular.
  • +
  • ReallyCoolTool para AngularJS.
  • +
@@ -614,10 +682,10 @@
-

TERMS WE USE

+

TÉRMINOS QUE UTILIZAMOS

- We often use terms that are not part of our brand, - but we want to remain consistent on the styling and use of them to prevent confusion and to appear unified. + A menudo utilizamos términos que no forman parte de nuestra marca, + pero queremos ser consistentes en el estilo y el uso de ellos para evitar confusiones y parecer unificados.

  • Ahead of Time compilation (AOT)
  • @@ -626,4 +694,4 @@
-
+ \ No newline at end of file diff --git a/aio/content/tutorial/toh-pt2.en.md b/aio/content/tutorial/toh-pt2.en.md new file mode 100644 index 0000000000..ce094dac3f --- /dev/null +++ b/aio/content/tutorial/toh-pt2.en.md @@ -0,0 +1,253 @@ +# Display a selection list + +In this page, you'll expand the Tour of Heroes app to display a list of heroes, and +allow users to select a hero and display the hero's details. + +
+ + For the sample app that this page describes, see the . + +
+ + +## Create mock heroes + +You'll need some heroes to display. + +Eventually you'll get them from a remote data server. +For now, you'll create some _mock heroes_ and pretend they came from the server. + +Create a file called `mock-heroes.ts` in the `src/app/` folder. +Define a `HEROES` constant as an array of ten heroes and export it. +The file should look like this. + + + +## Displaying heroes + +Open the `HeroesComponent` class file and import the mock `HEROES`. + + + + +In the same file (`HeroesComponent` class), define a component property called `heroes` to expose the `HEROES` array for binding. + + + + +### List heroes with `*ngFor` + +Open the `HeroesComponent` template file and make the following changes: + +* Add an `

` at the top, +* Below it add an HTML unordered list (`