Advertisement
Guest User

Untitled

a guest
Jul 24th, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. zone.js:522 Unhandled Promise rejection: Template parse errors:
  2. The pipe 'filterBy' could not be found ("
  3. <tbody>
  4.  
  5. <tr *ngFor="let [ERROR ->]type of typeServices |
  6. filterBy: filtre">
  7.  
  8. <td>{{type.id_typeService}"):
  9. TypeServiceComponent@47:42 ; Zone: <root> ; Task: Promise.then ;
  10. Value:
  11. SyntaxError {__zone_symbol__error: Error: Template parse errors: The
  12. pipe 'filterBy' could not be found (" <tbody> ……}
  13. Error: Template parse errors:
  14. The pipe 'filterBy' could not be found ("
  15. <tbody>
  16.  
  17. <tr *ngFor="let [ERROR ->]type of typeServices |
  18. filterBy: filtre">
  19.  
  20. <td>{{type.id_typeService}"): TypeServiceComponent@47:42.
  21.  
  22. <table class="table table-hover">
  23.  
  24. <thead class="text-danger">
  25. <tr>
  26. <th>id_typeService</th>
  27. <th> nom typeService<input type="text" [(ngModel)]="filtre.nom_typeService" placeholder="filtre" > </th>
  28. <th>Edit </th>
  29. </tr>
  30.  
  31.  
  32. </thead>
  33. <tbody>
  34.  
  35. <tr *ngFor="let type of typeServices | filterBy: filtre">
  36.  
  37. <td>{{type.id_typeService}}</td>
  38. <td>{{type.nom_typeService}}</td>
  39.  
  40.  
  41. import { Component , Input } from '@angular/core';
  42.  
  43. import { Router } from "@angular/router";
  44. import {TypeServiceService} from '../../services/typeService.service';
  45.  
  46. @Component({
  47. selector: 'table-cmp',
  48. moduleId: module.id,
  49. templateUrl: 'typeService.component.html',
  50. providers: [TypeServiceService],
  51. })
  52.  
  53. export class TypeServiceComponent{
  54. filtre : TypeService;
  55. typeServices : TypeService[]
  56.  
  57. }
  58. interface TypeService {
  59. id_typeService : number;
  60. nom_typeService : string;
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement