I am trying to create a contact form in Angular and I wish to display an indeterminate progress bar using Angular Material when the user clicks on submit.
I followed the steps mentioned on the official Angular Material site (https://material.angular.io/components/progress-bar/overview). However, when I include it in my web application, the progress bar simply shows up as dotted lines.
PFB screenshot displaying the issue:
[1
Code Snippet:
Can anyone please advise why does Angular-Material progress bar behave this way and the possible solutions for it?
Solved! I had missed out on including the pre-built theme in the root css file.
Adding @import "~@angular/material/prebuilt-themes/indigo-pink.css";
in style.css resolved the issue and the progress bar started working as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With