Site icon Coding Faster

PrimeNg Progress Bar

Tonight I want to show you how easy to make a progresbar with Prime Ng.  As usual we must add progressbar component to the app.module

Second step is using it in your html file. So we must decide status bar type “dynamic, static or indeterminate”. I will show you to use indeterminate progressbar. Add the code below to your html file below the button you use.

And we will control the progressbar by div_visible variable. When our process has finished (fetching data vs..), we will set it to false and make the div invisible.

That’s all. You can also use ProgressSpinner instead of ProgressBar as you wish. You should have a look at my another post about PrimeNg ContextMenu

 

If you have question do not forget to write from the chat button next to it or from the comment

Exit mobile version