Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. // ...
  2. @Component({ ... })
  3. export class MyComponent {
  4.  
  5. file: any;
  6.  
  7. constructor() {}
  8.  
  9. getFile(event: any) {
  10. this.file = event.target.files[0];
  11.  
  12. const classe = {
  13. libelle: null,
  14. ecole: null,
  15. date_creation: null,
  16. nbre_etudiant: null
  17. };
  18.  
  19. this.fileReader(this.file, classe);
  20. }
  21. // ...
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement