at this point I think that the problem is my English.I have no errors, I do 
not understand what is pipetrasform! I used voluntarily void

import { Component, Pipe} from '@angular/core';

@Component({
  selector: 'app-root',
  template: `<div>{{test | aux:'me'}}</div>`
})
export class AppComponent {
  test:string = 'Help';
  constructor(){}
}

@Pipe({name: 'aux'})
export class HelpPipe {
  transform(str: string, ...args: any[]): string {
    console.log(str);
    return `${str} ${args[0]}`;
  }
}

This source works perfectly, if you add "PipeTrasform" is same.
I hope this time I explained.


Il giorno martedì 17 gennaio 2017 12:57:25 UTC+1, Sander Elias ha scritto:
>
> Hi Feof,
>
>
> The problem is that you created a void function. a pipe MUST return 
> something. Fix that, and your error is gone.
>
> Regards
> Sander
>

-- 
You received this message because you are subscribed to the Google Groups 
"Angular" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to