填寫這份《一分鐘調查》,幫我們(開發組)做得更好!去填寫Home

SimpleChanges

SimpleChange物件表示的變更的雜湊表,這些物件以宣告的屬性名稱儲存在指令或元件上,這些屬性屬於它們。這是傳遞給 ngOnChanges 鉤子的型別。

A hashtable of changes represented by SimpleChangeobjects stored at the declared property name they belong to on a Directive or Component. This is the type passed to the ngOnChanges hook.

      
      interface SimpleChanges {
  __index(propName: string): SimpleChange
}
    

參見

方法

__index(propName: string): SimpleChange
      
      __index(propName: string): SimpleChange
    
引數
propName string
返回值

SimpleChange