Pipe class inheriting a transform method should be ok
Closed this issue · 1 comments
chalin commented
A pipe class can inherit its transform method, can it not? Angular seems to be happy with this, but the plugin reports an issue:
warning: @pipe declared classes must contain a 'transform' method
MichaelRFairhurst commented
Yep, inheritance should be fine!
We likely record offset information about it in the tree, so we're probably looking at the source instead of the class's interface. I should be able to add a fall back that operates in other ways, or even always go off of the interface and just change how to get the offset info to something more clever.
Thanks for filing!