From d0e710d47242080fa2c366d0d8f72ba5ebcbf7c4 Mon Sep 17 00:00:00 2001 From: Judy Bogart Date: Tue, 18 Sep 2018 10:43:35 -0700 Subject: [PATCH] docs: copy edit (#25582) PR Close #25582 --- packages/core/src/linker/template_ref.ts | 8 ++++---- packages/core/src/linker/view_container_ref.ts | 8 ++++---- packages/core/src/linker/view_ref.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/core/src/linker/template_ref.ts b/packages/core/src/linker/template_ref.ts index 3013ea8fa6..a7880bdd46 100644 --- a/packages/core/src/linker/template_ref.ts +++ b/packages/core/src/linker/template_ref.ts @@ -12,11 +12,11 @@ import {EmbeddedViewRef} from './view_ref'; /** * Represents an embedded template that can be used to instantiate embedded views. - * To instantiate embedded views based on a template, use {@link ViewContainerRef# - * createEmbeddedView}. + * To instantiate embedded views based on a template, use the `ViewContainerRef` + * method `createEmbeddedView()`. * - * Access a `TemplateRef` instance by placing a directive (or directive prefixed with `*`) - * on an `` element. The `TemplateRef` for the embedded view + * Access a `TemplateRef` instance by placing a directive on an `` + * element (or directive prefixed with `*`). The `TemplateRef` for the embedded view * is injected into the constructor of the directive, * using the `TemplateRef` token. * diff --git a/packages/core/src/linker/view_container_ref.ts b/packages/core/src/linker/view_container_ref.ts index 798bdf4be8..113555e474 100644 --- a/packages/core/src/linker/view_container_ref.ts +++ b/packages/core/src/linker/view_container_ref.ts @@ -17,9 +17,9 @@ import {EmbeddedViewRef, ViewRef} from './view_ref'; /** * Represents a container where one or more views can be attached to a component. * - * Can contain _host_ views (created by instantiating a - * component with the `createComponent()` method), and _embedded views_ - * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method. + * Can contain *host views* (created by instantiating a + * component with the `createComponent()` method), and *embedded views* + * (created by instantiating a `TemplateRef` with the `createEmbeddedView()` method). * * A view container instance can contain other view containers, * creating a [view hierarchy](guide/glossary#view-tree). @@ -119,7 +119,7 @@ export abstract class ViewContainerRef { /** * Returns the index of a view within the current container. - * @parem viewRef The view to query. + * @param viewRef The view to query. * @returns The 0-based index of the view's position in this container, * or `-1` if this container doesn't contain the view. */ diff --git a/packages/core/src/linker/view_ref.ts b/packages/core/src/linker/view_ref.ts index 586eef47c1..d73e12365a 100644 --- a/packages/core/src/linker/view_ref.ts +++ b/packages/core/src/linker/view_ref.ts @@ -53,7 +53,7 @@ export abstract class ViewRef extends ChangeDetectorRef { * @usageNotes * * The following template breaks down into two separate `TemplateRef` instances, - * an outer one and and an inner one. + * an outer one and an inner one. * * ``` * Count: {{items.length}}