We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f1b6410 commit ad000dbCopy full SHA for ad000db
projects/xtream/ngx-validation-errors/src/lib/map-to-message.pipe.ts
@@ -17,7 +17,7 @@ export class MapToMessagePipe implements PipeTransform {
17
18
if (pipeFactory) {
19
try {
20
- this.pipe = new pipeFactory(cdRef);
+ this.pipe = pipeFactory(cdRef);
21
} catch (e) {
22
console.error(e);
23
this.pipe = new InnerMapToMessagePipe();
@@ -27,7 +27,7 @@ export class MapToMessagePipe implements PipeTransform {
27
}
28
29
30
- transform(value: any, args: any): any {
+ transform(value: any, ...args: any): any {
31
return this.pipe.transform(value, ...args);
32
33
0 commit comments