angular pipe arguments code example
Example 1: What are the parameters for the number Pipe - Angular 2
{{ exampleNumber | number : '1.2-2' }}
Format: {minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}
So example of '1.2-2' means:
A minimum of 1 digit will be shown before decimal point
It will show at least 2 digits after decimal point
But not more than 2 digits
Example 2: use pipe output as argument
Try to write your pipe command with following structure´s principle:
./Myscript.sh "$(cat text.txt)"
So that your pipe output is generated in an intrinsic $(pipe_output).
Example 3: angular pipe multiple arguments
new MyPipe().transform(myData, arg1, arg2, arg3)