1 |
49598
|
stefanos.g
|
/**
|
2 |
|
|
* @license
|
3 |
|
|
* Copyright Google Inc. All Rights Reserved.
|
4 |
|
|
*
|
5 |
|
|
* Use of this source code is governed by an MIT-style license that can be
|
6 |
|
|
* found in the LICENSE file at https://angular.io/license
|
7 |
|
|
*/
|
8 |
|
|
import { ApplicationRef } from '../application_ref';
|
9 |
|
|
import { ChangeDetectorRef } from '../change_detection/change_detection';
|
10 |
|
|
import { Injector } from '../di/injector';
|
11 |
|
|
import { ComponentFactory } from '../linker/component_factory';
|
12 |
|
|
import { NgModuleRef } from '../linker/ng_module_factory';
|
13 |
|
|
import { ViewContainerRef } from '../linker/view_container_ref';
|
14 |
|
|
import { EmbeddedViewRef, InternalViewRef } from '../linker/view_ref';
|
15 |
|
|
import { Renderer as RendererV1 } from '../render/api';
|
16 |
|
|
import { Type } from '../type';
|
17 |
|
|
import { ElementData, NgModuleDefinition, NodeDef, TemplateData, ViewContainerData, ViewData, ViewDefinitionFactory } from './types';
|
18 |
|
|
export declare function createComponentFactory(selector: string, componentType: Type<any>, viewDefFactory: ViewDefinitionFactory, inputs: {
|
19 |
|
|
[propName: string]: string;
|
20 |
|
|
} | null, outputs: {
|
21 |
|
|
[propName: string]: string;
|
22 |
|
|
}, ngContentSelectors: string[]): ComponentFactory<any>;
|
23 |
|
|
export declare function getComponentViewDefinitionFactory(componentFactory: ComponentFactory<any>): ViewDefinitionFactory;
|
24 |
|
|
export declare function createViewContainerData(view: ViewData, elDef: NodeDef, elData: ElementData): ViewContainerData;
|
25 |
|
|
export declare function createChangeDetectorRef(view: ViewData): ChangeDetectorRef;
|
26 |
|
|
export declare class ViewRef_ implements EmbeddedViewRef<any>, InternalViewRef {
|
27 |
|
|
private _viewContainerRef;
|
28 |
|
|
private _appRef;
|
29 |
|
|
constructor(_view: ViewData);
|
30 |
|
|
readonly rootNodes: any[];
|
31 |
|
|
readonly context: any;
|
32 |
|
|
readonly destroyed: boolean;
|
33 |
|
|
markForCheck(): void;
|
34 |
|
|
detach(): void;
|
35 |
|
|
detectChanges(): void;
|
36 |
|
|
checkNoChanges(): void;
|
37 |
|
|
reattach(): void;
|
38 |
|
|
onDestroy(callback: Function): void;
|
39 |
|
|
destroy(): void;
|
40 |
|
|
detachFromAppRef(): void;
|
41 |
|
|
attachToAppRef(appRef: ApplicationRef): void;
|
42 |
|
|
attachToViewContainerRef(vcRef: ViewContainerRef): void;
|
43 |
|
|
}
|
44 |
|
|
export declare function createTemplateData(view: ViewData, def: NodeDef): TemplateData;
|
45 |
|
|
export declare function createInjector(view: ViewData, elDef: NodeDef): Injector;
|
46 |
|
|
export declare function nodeValue(view: ViewData, index: number): any;
|
47 |
|
|
export declare function createRendererV1(view: ViewData): RendererV1;
|
48 |
|
|
export declare function createNgModuleRef(moduleType: Type<any>, parent: Injector, bootstrapComponents: Type<any>[], def: NgModuleDefinition): NgModuleRef<any>;
|