KeyValueDiffers
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'
Static methods
create() | ||||||
---|---|---|---|---|---|---|
Parameters
Returns |
extend() | |||
---|---|---|---|
Takes an array of |
|||
Parameters
Returns |
|||
Usage NotesExampleThe 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
|
Constructor
Properties
Property | Description |
---|---|
factories: KeyValueDifferFactory[]
|
Deprecated v4.0.0 - Should be private. |
Methods
find() |
---|