sowmya
sowmya

Reputation: 51

how add image to a form along with its loading bar using angular4

I have a form in angular 4. and i am trying to post the form into a server. What is the way to add images in a from using angular4 with progress bar?textboxes and dropdowns The form is already having some when i am trying to load an image, it must show progress bar when the image is loading.

Upvotes: 0

Views: 483

Answers (1)

Parth Savadiya
Parth Savadiya

Reputation: 1211

Use PrimeNg controls:

  1. npm install primeng --save
  2. import {FileUploadModule} from 'primeng/fileupload'; in your component or module.
  3. Add below code snippet in your HTML template

<p-fileUpload name="myfile[]" url="./upload.php"></p-fileUpload>

PrimeNg FileUpload

Upvotes: 1

Related Questions