We are trying to implement deferrable views for a component in angular. This component is present in a component which is used by a parent in another repo. While defer seems to be working when we implemented it inside component of the same project, its not working when imported and used in a library. Two issue here actually:
Here are the things which I have followed as a requirement:
Is there anything I'm doing wrong or any additional requirement I need to follow ?
I had raised this issue to Angular team https://github.com/angular/angular/issues/53936. Turns out angular hadn't added support for deferrable views in libraries in v17. And since libraries are compiled differently than applications. It was not working. It has been added now and will be available in Angular v18 https://github.com/angular/angular/issues/53936#issuecomment-2019427618 .