[swc-plugin-angular] Functional APIs (e.g. input()
) are broken if a property is declared in the constructor
#304
Labels
input()
) are broken if a property is declared in the constructor
#304
This doesn't work because the input is not decorated:
This happens because this is parsed by SWC as:
We have to detect functional APIs in the constructor.
Meanwhile, the workaround is to use the
inject()
function which is the approach I'd recommend in general.The text was updated successfully, but these errors were encountered: