NgElement
class
Implements the functionality needed for a custom element.
abstract class NgElement extends HTMLElement {
protected ngElementStrategy: NgElementStrategy
protected ngElementEventsSubscription: Subscription | null
abstract attributeChangedCallback(attrName: string, oldValue: string, newValue: string, namespace?: string): void
abstract connectedCallback(): void
abstract disconnectedCallback(): void
}
Properties
Property | Description |
---|---|
protected ngElementStrategy: NgElementStrategy
|
The strategy that controls how a component is transformed in a custom element. |
null | A subscription to change, connect, and disconnect events in the custom element. |
Methods
attributeChangedCallback() | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Prototype for a handler that responds to a change in an observed attribute. | ||||||||||||
abstract attributeChangedCallback(attrName: string, oldValue: string, newValue: string, namespace?: string): voidParameters
Returns
|
connectedCallback() |
---|
Prototype for a handler that responds to the insertion of the custom element in the DOM. |
abstract connectedCallback(): voidParametersThere are no parameters. Returns
|
disconnectedCallback() |
---|
Prototype for a handler that responds to the deletion of the custom element from the DOM. |
abstract disconnectedCallback(): voidParametersThere are no parameters. Returns
|
© 2010–2019 Google, Inc.
Licensed under the Creative Commons Attribution License 4.0.
https://v7.angular.io/api/elements/NgElement