KeyValueDiffers
NgClass、NgStyle 等使用的不同映射表差异策略的存储库。
A repository of different Map diffing strategies used by NgClass, NgStyle, and others.
class KeyValueDiffers {
static create<S>(factories: KeyValueDifferFactory[], parent?: KeyValueDiffers): KeyValueDiffers
static extend<S>(factories: KeyValueDifferFactory[]): StaticProvider
constructor(factories: KeyValueDifferFactory[])
factories: KeyValueDifferFactory[]
find(kv: any): KeyValueDifferFactory
}
Provided in
'root'
静态方法
参数
返回值 |
接受 Takes an array of | |||
参数
返回值 | |||
使用说明例子Example以下示例显示如何扩展现有工厂列表,该列表仅适用于该组件及其子组件的注入器。这是使新的 The following example shows how to extend an existing list of factories, which will only be applied to the injector for this component and its children. This step is all that's required to make a new
|
构造函数
属性
属性 | 说明 |
---|---|
factories: KeyValueDifferFactory[] |