Cookies concent notice

This site uses cookies from Google to deliver its services and to analyze traffic.
Learn more
Skip to main content
Say hello to Angular's future home!Check out Angular.devHome
/

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, transform?: (value: any) => any): void
}
    

Properties

Property Description
events: Observable<NgElementStrategyEvent>

Methods

      
      connect(element: HTMLElement): void
    
Parameters
element HTMLElement
Returns

void

      
      disconnect(): void
    
Parameters

There are no parameters.

Returns

void

      
      getInputValue(propName: string): any
    
Parameters
propName string
Returns

any

      
      setInputValue(propName: string, value: string, transform?: (value: any) => any): void
    
Parameters
propName string
value string
transform (value: any) => any

Optional. Default is undefined.

Returns

void