feat(elements): implement NgElement

This commit is contained in:
George Kalpakas
2017-10-12 12:36:34 +03:00
committed by Victor Berchet
parent 75cf70ae04
commit aed4a11d01
10 changed files with 1776 additions and 14 deletions

View File

@ -1,2 +1,19 @@
/** @experimental */
export interface NgElement<T> extends HTMLElement {
componentRef: ComponentRef<T> | null;
ngElement: NgElement<T> | null;
attributeChangedCallback(attrName: string, oldValue: string | null, newValue: string, namespace?: string): void;
connectedCallback(): void;
detach(): void;
detectChanges(): void;
disconnectedCallback(): void;
getHost(): HTMLElement;
markDirty(): void;
}
/** @experimental */
export declare type NgElementWithProps<T, P> = NgElement<T> & {
[property in keyof
/** @experimental */
export declare const VERSION: Version;