enable piped argument on function calls (#233)
This commit is contained in:
@@ -9,7 +9,8 @@ import {
|
||||
Binary,
|
||||
LiteralMap,
|
||||
LiteralArray,
|
||||
Interpolation
|
||||
Interpolation,
|
||||
MethodCall
|
||||
} from '@angular/compiler';
|
||||
|
||||
import { ParserInterface } from './parser.interface';
|
||||
@@ -131,6 +132,10 @@ export class PipeParser implements ParserInterface {
|
||||
return this.getTranslatablesFromAsts(ast.expressions);
|
||||
}
|
||||
|
||||
if (ast instanceof MethodCall) {
|
||||
return this.getTranslatablesFromAsts(ast.args);
|
||||
}
|
||||
|
||||
return [];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user