Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ERROR Error: Uncaught (in promise): Error: Template parse errors:
- 'p-editor' is not a known element:
- 1. If 'p-editor' is an Angular component, then verify that it is part of this module.
- 2. If 'p-editor' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message. ("
- </div>
- <a (click)="goBack()" class="btn btn-warning btn-md m-3">
- <i class="fas fa-backward"></i> Voltar
- </a>
- <h4 class="m-5">{{pageTitle}}</h4>
- <form class="m-5" [formGroup]="rhForm" (submit)="onSubmit()">
- <div class="form-row">
- <div class="form-group col-md-6">
- <label for="titulo">Título</label>
- <input type="text" class="form-control" id="titulo" formControlName="titulo">
- <div class="small" *ngIf="!rhForm.controls['titulo'].valid && rhForm.controls['titulo'].touched"> O campo "Título" não pode ficar em branco!</div>
- </div>
- </div>
- <div class="form-row">
- <div class="form-group col-md-6">
- <label for="id_categoria">Categoria</label>
- <select name="id_categoria" id="id_categoria" class="form-control" formControlName="id_categoria">
- <option value="{{ c.id_categoria }}" *ngFor="let c of categorias" >{{ c.nome_categoria }}</option>
- </select>
- <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>
- </div>
- </div>
- <!-- Here -->
- <p-editor></p-editor>
- </form>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement