This is the archived documentation for Angular v6. Please visit angular.io to see documentation for the current version of Angular.

NgElementStrategy

Underlying strategy used by the NgElement to create/destroy the component and react to input changes.

      
      interface NgElementStrategy {
  events: Observable<NgElementStrategyEvent>
  connect(element: HTMLElement): void
  disconnect(): void
  getInputValue(propName: string): any
  setInputValue(propName: string, value: string): void
}
    

Properties

Property Description
events: Observable<NgElementStrategyEvent>

Methods

connect(element: HTMLElement): void
      
      connect(element: HTMLElement): void
    

Parameters

element

Type: HTMLElement.

Returns

void

disconnect(): void
      
      disconnect(): void
    

Parameters

There are no parameters.

Returns

void

getInputValue(propName: string): any
      
      getInputValue(propName: string): any
    

Parameters

propName

Type: string.

Returns

any

setInputValue(propName: string, value: string): void
      
      setInputValue(propName: string, value: string): void
    

Parameters

propName

Type: string.

value

Type: string.

Returns

void