You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-20Lines changed: 9 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,27 +1,22 @@
1
1
# Fctrlx Angular File Reader
2
2
Angular library that helps convert file (from input[type=file]) to base64/arrayBuffer/text using FileReader API.
3
3
4
-
#Installation
4
+
#Installation
5
5
6
6
1.`npm install --save fctrlx-angular-file-reader`
7
7
2. add dependency to your project
8
8
9
-
`
9
+
```
10
10
import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
11
11
12
12
@NgModule({
13
-
14
13
...
15
-
16
14
imports: [
17
-
18
15
...,
19
-
20
16
FctrlxAngularFileReader,
21
-
22
17
]
23
-
24
-
})`
18
+
})
19
+
```
25
20
26
21
3. Enjoy!
27
22
@@ -40,22 +35,16 @@ import { FctrlxAngularFileReader } from 'fctrlx-angular-file-reader';
40
35
-`filesChange` - Event that calling when you select a file(s), usage: `<input fileToText type="file" [(files)]="fileModelText" (filesChange)="onTextChanges($event)">`
0 commit comments