-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pipe aliases #12
Comments
I agree with these aliases, but... is it allowed to use multiple names in the |
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();
}
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: