Skip to content

Commit 67030dd

Browse files
authored
Update README.md
1 parent 5f7cd7e commit 67030dd

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

README.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,33 @@ Angular library that helps convert file (from input[type=file]) to base64/arrayB
66
1. `npm install --save fctrlx-angular-file-reader`
77
2. add dependency to your project
88

9-
`
10-
import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
9+
`import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
1110

1211
@NgModule({
1312
...
1413
imports: [
1514
...,
1615
FctrlxAngularFileReader,
1716
]
18-
})
19-
`
17+
})`
2018

2119
3. Enjoy!
2220

23-
#Usage:
21+
# Usage:
2422
`<input fileToBase64 type="file" [(files)]="fileModel">`
2523

26-
#Available Directives
24+
# Available Directives
2725
- `fileToBase64`
2826
- `fileToArrBuf`
2927
- `fileToText`
3028

31-
#Events and attributes.
29+
# Events and attributes.
3230
- `files` - your model that will be converted.
3331
- `type` - directives working only with type=file.
3432
- `multiple` - if you input is multiple - you will get in response array of files, in other case it will be an object.
3533
- `filesChange` - Event that calling when you select a file(s), usage: `<input fileToText type="file" [(files)]="fileModelText" (filesChange)="onTextChanges($event)">`
3634

37-
#Response
35+
# Response
3836
`{
3937
name: string;//file name
4038
size: number;//file size
@@ -45,8 +43,8 @@ import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
4543
}`
4644

4745

48-
#Full example:
46+
# Full example:
4947

5048

51-
#Author
49+
# Author
5250
_Alexey Khamitsevich_

0 commit comments

Comments
 (0)