IterableDiffers
NgFor、NgClass 等使用的不同迭代策略的存储库。
A repository of different iterable diffing strategies used by NgFor, NgClass, and others.
class IterableDiffers {
static create(factories: IterableDifferFactory[], parent?: IterableDiffers): IterableDiffers
static extend(factories: IterableDifferFactory[]): StaticProvider
constructor(factories: IterableDifferFactory[])
factories: IterableDifferFactory[]
find(iterable: any): IterableDifferFactory
}
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: IterableDifferFactory[] |