Implementing a custom directive in a non-standalone component
I have developed a custom structural directive and I would like to use it across multiple components. Everything functions as expected when it is not standalone, but encountering an error when adding standalone: true
: 'imports' is only valid on a standalone component.
I prefer to keep my component non-standalone while making the directive standalone. Is there a solution for this dilemma?
How can I achieve this desired setup?