Polish Part 3 (#2424)
This commit is contained in:
parent
a018d6828e
commit
944830ca73
62 changed files with 518 additions and 493 deletions
10
UI/Web/src/app/_providers/saver.provider.ts
Normal file
10
UI/Web/src/app/_providers/saver.provider.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import {InjectionToken} from '@angular/core'
|
||||
import { saveAs } from 'file-saver';
|
||||
|
||||
export type Saver = (blob: Blob, filename?: string) => void
|
||||
|
||||
export const SAVER = new InjectionToken<Saver>('saver')
|
||||
|
||||
export function getSaver(): Saver {
|
||||
return saveAs;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue