ngx-filesize icon indicating copy to clipboard operation
ngx-filesize copied to clipboard

filesize.js pipe wrapper for Angular

ngx-filesize

A filesize.js pipe for Angular

v2 Migration

Pipe name was changed from {{ 123 | bytes }} to {{ 123 | filesize }}

Usage:

npm install ngx-filesize

In your module:

import {NgxFilesizeModule} from 'ngx-filesize';

// ...

@NgModule({
    // ...
    imports: [
        // ...
        NgxFilesizeModule,
        // ...
    ]
    // ...
})

In your component:

{{bytes | filesize}}