Format is a custom pipe to format any string into a type by an identifying string
someVar | format : 'number : 1.0-2'
Input: someNumberVar: string = '435.23528';
Output: {{someNumberVar | format : 'number : 1.0-2'}}
Number format is like this: {{'{minIntegerDigits}.{minFractionDigits}-{maxFractionDigits}'}}
someTimestamp | format : 'dateTime : MMM d, y h:mm:ss a'
Input: someTimestamp: number = 1442187616000;
Output: {{someTimestamp | format : 'dateTime : MMM d, y h:mm:ss a'}}
{{'import {FormatPipe} from "fuel-ui/fuel-ui"'}}
Format pipe is used to format any string into a type by an identifying string. This is good for when you know the format of the output, but don't necessarily know the input type
export class FormatExample {{'{'}}
someNumberVar: string = '435.23528';
someTimestamp: number = 1442187616000;
{{'}'}}