We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
In recent events the SnakeCasePipe is renamed to UnderscorePipe (a103dd8).
SnakeCasePipe
UnderscorePipe
In my opinion the name SnakeCasePipe makes a lot of sense. @rafaelss95 apparently thinks UnderscorePipe to be more suitable.
But looking at it from the user perspective both are equally correct names. I suggest we allow multiple names for the same pipes by creating aliases.
capitalize -- ucFirst snakeCase -- underscore camelCase -- camelize
capitalize
ucFirst
snakeCase
underscore
camelCase
camelize
The text was updated successfully, but these errors were encountered:
I like it. Also, there are several more aliases in angular-filter that I like to add:
angular-filter
contains
some
unique
uniq
Sorry, something went wrong.
I agree with these aliases, but... is it allowed to use multiple names in the @Pipe decorator?
@Pipe
Something in the form of the following should be possible (untested code):
import {Pipe, PipeTransform} from '@angular/core'; @Pipe({name: 'somePipe'}) export class SomePipe implements PipeTransform { transform() {} } @Pipe({name: 'someOtherPipe'}) export class SomeOtherPipe implements PipeTransform { somePipe = new SomePipe(); transform() { return somePipe.transform(); } }
No branches or pull requests
In recent events the
SnakeCasePipe
is renamed toUnderscorePipe
(a103dd8).In my opinion the name
SnakeCasePipe
makes a lot of sense.@rafaelss95 apparently thinks
UnderscorePipe
to be more suitable.But looking at it from the user perspective both are equally correct names.
I suggest we allow multiple names for the same pipes by creating aliases.
Alias suggestions
capitalize
--ucFirst
snakeCase
--underscore
camelCase
--camelize
The text was updated successfully, but these errors were encountered: