From f370fd36e0b77bdbeff64e135a51822075934f97 Mon Sep 17 00:00:00 2001 From: Ward Bell Date: Wed, 7 Jun 2017 10:59:48 -0700 Subject: [PATCH] =?UTF-8?q?docs:=20"TypeScript=20to=20JavaScript"=20code?= =?UTF-8?q?=20tab=20renamed=20=E2=80=9CES6=20+=20Decorators=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit closes #17260 --- aio/content/guide/ts-to-js.md | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/aio/content/guide/ts-to-js.md b/aio/content/guide/ts-to-js.md index a31f870736..c5127c7220 100644 --- a/aio/content/guide/ts-to-js.md +++ b/aio/content/guide/ts-to-js.md @@ -66,7 +66,7 @@ Anything you can import from `@angular` is a nested member of this `ng` object: - + @@ -104,7 +104,7 @@ Here is a `HeroComponent` as it might be defined and "exported" in each of the f - + @@ -121,7 +121,7 @@ In _ES5_ you use the shared namespace object to access "exported" entities from - + @@ -167,7 +167,7 @@ Use the constructor function pattern instead, adding methods to the prototype. - + @@ -193,7 +193,7 @@ See these variations side-by-side: - + @@ -213,7 +213,7 @@ The component, `HeroTitleComponent` in this case, then references the template f - + @@ -322,7 +322,7 @@ Just implement the methods and ignore interfaces when translating code samples f - + @@ -354,7 +354,7 @@ combined in the metadata `inputs` and `outputs` _arrays_. - + @@ -412,7 +412,7 @@ This format should be familiar to AngularJS developers. - + @@ -430,8 +430,8 @@ In _TypeScript_ and _ES6-with-decorators_, you precede the class constructor par by calling the `@Inject()` decorator with the injection token. In the following example, the token is the string `'heroName'`. -The other JavaScript dialects add a `parameters` array to the class contructor function. -Each item constains a new instance of `Inject`: +The other JavaScript dialects add a `parameters` array to the class constructor function. +Each item constrains a new instance of `Inject`: * _Plain ES6_—each item is a new instance of `Inject(token)` in a sub-array. * _ES5_—simply list the string tokens. @@ -442,7 +442,7 @@ array as before. Create a new instance of `ng.core.Inject(token)` for each param - + @@ -475,7 +475,7 @@ array as before. Use a nested array to define a parameter's complete injection s - + @@ -522,7 +522,7 @@ The `host` value is an object whose properties are host property and listener b - + @@ -545,7 +545,7 @@ These particular _TypeScript_ and _ES6_ code snippets happen to be identical. - + @@ -578,7 +578,7 @@ The `queries` property value is a hash map. - + @@ -597,7 +597,7 @@ They can be added in the same way as [`@ViewChild`](api/core/ViewChild) and - +