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
}
    

属性

属性说明
events: Observable<NgElementStrategyEvent>

方法

connect(element: HTMLElement): void
      
      connect(element: HTMLElement): void
    
参数
element HTMLElement
返回值

void

disconnect(): void
      
      disconnect(): void
    
参数

没有参数。

返回值

void

getInputValue(propName: string): any
      
      getInputValue(propName: string): any
    
参数
propName string
返回值

any

setInputValue(propName: string, value: string): void
      
      setInputValue(propName: string, value: string): void
    
参数
propName string
value string
返回值

void