''p-progressSpinner' is not a known element
the version pf primeng that i use is the latest one : 13.4.0 In the app module, i've import the Spinner module :
import { ProgressSpinnerModule } from 'primeng/progressspinner';
also :
imports: [
BrowserModule,
AppRoutingModule,
RouterModule,
HttpClientModule,
FormsModule,
BrowserAnimationsModule,
ProgressSpinnerModule
],
In the html, i just add the spinner tag in my-component:
<p-progressSpinner></p-progressSpinner>
<div *ngIf="contrats.length===0">
<!-- Pas de contrats -->
<p>Aucun contrat trouvé</p>
</div>
<div *ngIf="contrats.length!==0">
<div>
<!-- Header Search -->
<input type="text" pInputText placeholder="Nom et Prenom" [(ngModel)]="nomComplet">
<button type="button" pButton pRipple icon="pi pi-search" styleClass="p-button-warn" (click)="recherche()"></button>
<label>Criteres de recherche</label>
</div>
And my-component ts file :
import { Component, Input, OnInit } from '@angular/core';
import { DynamicDialogConfig, DynamicDialogRef } from 'primeng/dynamicdialog';
import { Adherent } from 'src/app/espace-client/collectivites/model/adherent.model';
import { Contrat } from 'src/app/espace-client//model/contrat.model';
import { ContratService, AdherentService } from 'business-client';
import { MessageService } from 'primeng/api';
import * as moment from 'moment';
import { LoadingService } from 'src/app/services/loading.service';
@Component({
selector: 'app-my-component',
templateUrl: './my-component.html',
styleUrls: ['./my-component.scss']
})
export class MyComponent implements OnInit {
and it's not recognized !!! why ? it show this error : 'p-progressSpinner' is not a known element
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
