Error when trying to add file through service in OnInit hook
ERROR TypeError: Cannot read property 'currentFiles' of undefined
at eval (file-input-handler.service.js:33)
at Array.forEach ()
at FileInputHandlerService.addFiles (file-input-handler.service.js:32)
at Ng2FileInputService.add (ng2-file-input.service.js:14)
...
Error when trying to add file through service in OnInit hook
ERROR TypeError: Cannot read property 'currentFiles' of undefined at eval (file-input-handler.service.js:33) at Array.forEach ()
at FileInputHandlerService.addFiles (file-input-handler.service.js:32)
at Ng2FileInputService.add (ng2-file-input.service.js:14)
...