Primitives
Display an indicator representing the progress of a task.
Import the Progress primitives from ng-primitives/progress
.
import { NgpProgress, NgpProgressIndicator } from 'ng-primitives/progress';
Assemble the avatar directives in your template.
<div ngpProgress [ngpProgressValue]="percentage">
<div ngpProgressIndicator [style.width.%]="percentage"></div>
</div>
The following directives are available to import from the ng-primitives/progress
package:
Apply the ngpProgress
directive to an element that represents the progress bar.
[ngpProgress]
ngpProgress
Apply the ngpProgressIndicator
directive to an element that represents the current progress.
The width of this element can be set to the percentage of the progress value.
[ngpProgressIndicator]
ngpProgressIndicator
Copyright © 2024 Angular Primitives