Skip to content

Instantly share code, notes, and snippets.

@merlosy
Last active May 22, 2021 22:13
Show Gist options
  • Save merlosy/ab33dd7edaacfd92d6c9a5daea0a1240 to your computer and use it in GitHub Desktop.
Save merlosy/ab33dd7edaacfd92d6c9a5daea0a1240 to your computer and use it in GitHub Desktop.
Angular 4+ Material input field

Angular Material - File Upload field

  • Compatible with model driven validation (Reactive forms)
  • tested on Angular Material Beta 12
  • Implemented with Angular 4.4.x

For easier maintaining, I moved all sources on Plunker: SEE LIVE DEMO ON PLUNKER

Note: Getting the model value, returns an FileInput object (type FileInput)

@merlosy
Copy link
Author

merlosy commented May 22, 2018

UPDATE: use the recommended library right now!
https://github.com/merlosy/ngx-material-file-input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment