Angular PrimeNG ProgressSpinner Styling
Last Updated :
26 Apr, 2025
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the ProgressSpinner component in Angular PrimeNG.
ProgressSpinner: This component is used to make a spinner that illustrates the process status.
Styling:
- p-progress-spinner: It is the container element.
- p-progress-circle: It is the SVG styling element.
- p-progress-path: It is the circle styling element.
Approach: Let us create an Angular project and install PrimeNG UI module. Then we will create a UI that will showcase Angular PrimeNG ProgressSpinner Styling.
Creating React Project:
Step 1: To create a angular app, you need to install angular command line interface through npm command.
npm install -g angular-cli
Step 2: Now we will create a angular project.
ng new project_name
Step 3: After creating your react project, move into the folder to perform different operations.
cd project_name
Step 4: After creating the Angular application, Install the required module using the following command:
npm install primeng --save
npm install primeicons --save
Project Structure: After running the commands mentioned in the above steps, if you open the project in an editor, you can see a similar project structure as shown below. The new component user makes or the code changes, we will be performing will be done in the source folder. Â Â
Project Structure
Step to Run Application: Run the application using the following command from the root directory of the project:
ng serve --open
Example 1: We are creating a UI that shows ProgressSpinner Styling.
HTML
<div style="margin:100px; text-align: center;">
<h1 style="color: green">GeeksforGeeks</h1>
<h3>Angular PrimeNG ProgressSpinner Styling</h3>
<br /><br />
<p-progressSpinner></p-progressSpinner>
</div>
JavaScript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ProgressSpinnerModule } from 'primeng/progressspinner';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ProgressSpinnerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
CSS
.p-progress-spinner {
background-color: gainsboro;
rotate: 150deg;
}
Output: Now open your browser and go to http://localhost:3000/, you will see the following output:
Â
Example 2: We are creating a UI that shows ProgressSpinner Styling.
HTML
<div style="margin:100px; text-align: center;">
<h1 style="color: green;">
GeeksforGeeks
</h1>
<h3>Angular PrimeNG ProgressSpinner Styling</h3>
<br /><br />
<p-progressSpinner strokeWidth="2"
fill="#03fc24" animationDuration="5s">
</p-progressSpinner>
</div>
JavaScript
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { ProgressSpinnerModule } from 'primeng/progressspinner';
import { AppComponent } from './app.component';
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
ProgressSpinnerModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
CSS
.p-progress-spinner{
background-color: aqua;
rotate:120deg;
}
Output: Now open your browser and go to http://localhost:3000/, you will see the following output:
Â
Reference: http://primefaces.org/primeng/progressspinner
Similar Reads
Angular PrimeNG ProgressSpinner Properties
Angular PrimeNG is an open-source library that consists of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will be seeing Angular PrimeNG ProgressSpinner Properties. ProgressSpinner Component
3 min read
Angular PrimeNG ProgressSpinner Basic
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the ProgressSpinner Basic in Angular PrimeNG. We will also l
2 min read
Angular PrimeNG Splitter Styling
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see the Angular PrimeNG Splitter Styling. The Splitter Component allows a u
3 min read
Angular PrimeNG ProgressSpinner Colors
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the ProgressSpinner Colors in Angular PrimeNG. We will also lea
3 min read
Angular PrimeNG ProgressSpinner Custom
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the ProgressSpinner Custom in Angular PrimeNG. We will also
3 min read
Angular PrimeNG Sidebar Styling
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will see how to use the Sidebar component in Angular PrimeNG. The Sidebar compon
3 min read
Angular PrimeNG ProgressBar Static
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use the ProgressBar Static in Angular PrimeNG. We will also learn a
3 min read
Angular PrimeNG ProgressSpinner Component
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. In this article, we will know how to use the ProgressSpinner component in Angular PrimeNG. We will a
3 min read
Angular PrimeNG Ripple Styling
Angular PrimeNG is a UI component library for Angular Applications. It offers many pre-built themes and UI components for a variety of tasks like inputs, menus, charts, Buttons, etc. In this article, we will see Angular PrimeNG Ripple Styling. The Ripple Component is used to apply a ripple effect an
3 min read
Angular PrimeNG ScrollPanel Styling
Angular PrimeNG is an open-source framework with a rich set of native Angular UI components that are used for great styling and this framework is used to make responsive websites with very much ease. This article will show us how to use ScrollPanel Styling in Angular PrimeNG. The ScrollPanel Compone
5 min read