docs: add api doc to template_ref (#27380)

PR Close #27380
This commit is contained in:
Judy Bogart 2018-11-30 12:10:32 -08:00 committed by Alex Rickabaugh
parent 94e305f48e
commit e0fbe8611e
1 changed files with 5 additions and 3 deletions

View File

@ -47,9 +47,11 @@ export abstract class TemplateRef<C> {
abstract get elementRef(): ElementRef; abstract get elementRef(): ElementRef;
/** /**
* Creates a view object and attaches it to the view container of the parent view. * Instantiates an embedded view based on this template,
* @param context The context for the new view, inherited from the anchor element. * and attaches it to the view container.
* @returns The new view object. * @param context The data-binding context of the embedded view, as declared
* in the `<ng-template>` usage.
* @returns The new embedded view object.
*/ */
abstract createEmbeddedView(context: C): EmbeddedViewRef<C>; abstract createEmbeddedView(context: C): EmbeddedViewRef<C>;