feat(pipes): support arguments in transform function
This commit is contained in:

committed by
vsavkin

parent
f0e962c55e
commit
600d53c68e
@ -28,7 +28,7 @@ export class CSSClass {
|
||||
}
|
||||
|
||||
onCheck(): void {
|
||||
var diff = this._pipe.transform(this._rawClass);
|
||||
var diff = this._pipe.transform(this._rawClass, null);
|
||||
if (isPresent(diff) && isPresent(diff.wrapped)) {
|
||||
if (diff.wrapped instanceof IterableChanges) {
|
||||
this._applyArrayChanges(diff.wrapped);
|
||||
|
@ -55,7 +55,7 @@ export class NgFor {
|
||||
}
|
||||
|
||||
onCheck() {
|
||||
var diff = this._pipe.transform(this._ngForOf);
|
||||
var diff = this._pipe.transform(this._ngForOf, null);
|
||||
if (isPresent(diff)) this._applyChanges(diff.wrapped);
|
||||
}
|
||||
|
||||
|
@ -20,7 +20,7 @@ export class NgStyle {
|
||||
}
|
||||
|
||||
onCheck() {
|
||||
var diff = this._pipe.transform(this._rawStyle);
|
||||
var diff = this._pipe.transform(this._rawStyle, null);
|
||||
if (isPresent(diff) && isPresent(diff.wrapped)) {
|
||||
this._applyChanges(diff.wrapped);
|
||||
}
|
||||
|
Reference in New Issue
Block a user