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;
/**
* Creates a view object and attaches it to the view container of the parent view.
* @param context The context for the new view, inherited from the anchor element.
* @returns The new view object.
* Instantiates an embedded view based on this template,
* and attaches it to the view container.
* @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>;