Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.47 KB | None | 0 0
  1. ERROR Error: Uncaught (in promise): Error: Template parse errors:
  2. 'p-editor' is not a known element:
  3. 1. If 'p-editor' is an Angular component, then verify that it is part of this module.
  4. 2. If 'p-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
  5. </div>
  6.  
  7. <a (click)="goBack()" class="btn btn-warning btn-md m-3">
  8. <i class="fas fa-backward"></i> Voltar
  9. </a>
  10. <h4 class="m-5">{{pageTitle}}</h4>
  11.  
  12. <form class="m-5" [formGroup]="rhForm" (submit)="onSubmit()">
  13. <div class="form-row">
  14. <div class="form-group col-md-6">
  15. <label for="titulo">Título</label>
  16. <input type="text" class="form-control" id="titulo" formControlName="titulo">
  17. <div class="small" *ngIf="!rhForm.controls['titulo'].valid && rhForm.controls['titulo'].touched"> O campo "Título" não pode ficar em branco!</div>
  18. </div>
  19. </div>
  20.  
  21. <div class="form-row">
  22. <div class="form-group col-md-6">
  23. <label for="id_categoria">Categoria</label>
  24. <select name="id_categoria" id="id_categoria" class="form-control" formControlName="id_categoria">
  25. <option value="{{ c.id_categoria }}" *ngFor="let c of categorias" >{{ c.nome_categoria }}</option>
  26. </select>
  27. <div class="small" *ngIf="!rhForm.controls['id_categoria'].valid && rhForm.controls['id_categoria'].touched"> O campo "Título" não pode ficar em branco!</div>
  28. </div>
  29. </div>
  30.  
  31. <!-- Here -->
  32. <p-editor></p-editor>
  33. </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement