mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
@@ -1,6 +1,12 @@
|
||||
import { ComponentRef, FrameworkDelegate } from '../interface';
|
||||
|
||||
export async function attachComponent(delegate: FrameworkDelegate | undefined, container: Element, component: ComponentRef, cssClasses?: string[], componentProps?: {[key: string]: any}): Promise<HTMLElement> {
|
||||
export async function attachComponent(
|
||||
delegate: FrameworkDelegate | undefined,
|
||||
container: Element,
|
||||
component: ComponentRef,
|
||||
cssClasses?: string[],
|
||||
componentProps?: {[key: string]: any}
|
||||
): Promise<HTMLElement> {
|
||||
if (delegate) {
|
||||
return delegate.attachViewToDom(container, component, componentProps, cssClasses);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user