Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- zone.js:522 Unhandled Promise rejection: Template parse errors:
- The pipe 'filterBy' could not be found ("
- <tbody>
- <tr *ngFor="let [ERROR ->]type of typeServices |
- filterBy: filtre">
- <td>{{type.id_typeService}"):
- TypeServiceComponent@47:42 ; Zone: <root> ; Task: Promise.then ;
- Value:
- SyntaxError {__zone_symbol__error: Error: Template parse errors: The
- pipe 'filterBy' could not be found (" <tbody> ……}
- Error: Template parse errors:
- The pipe 'filterBy' could not be found ("
- <tbody>
- <tr *ngFor="let [ERROR ->]type of typeServices |
- filterBy: filtre">
- <td>{{type.id_typeService}"): TypeServiceComponent@47:42.
- <table class="table table-hover">
- <thead class="text-danger">
- <tr>
- <th>id_typeService</th>
- <th> nom typeService<input type="text" [(ngModel)]="filtre.nom_typeService" placeholder="filtre" > </th>
- <th>Edit </th>
- </tr>
- </thead>
- <tbody>
- <tr *ngFor="let type of typeServices | filterBy: filtre">
- <td>{{type.id_typeService}}</td>
- <td>{{type.nom_typeService}}</td>
- import { Component , Input } from '@angular/core';
- import { Router } from "@angular/router";
- import {TypeServiceService} from '../../services/typeService.service';
- @Component({
- selector: 'table-cmp',
- moduleId: module.id,
- templateUrl: 'typeService.component.html',
- providers: [TypeServiceService],
- })
- export class TypeServiceComponent{
- filtre : TypeService;
- typeServices : TypeService[]
- }
- interface TypeService {
- id_typeService : number;
- nom_typeService : string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement