Use component in itself recursively to create a tree
update forwardRef() isn’t required anymore because directives was moved to NgModule.declarations and therefore recursive components don’t need to be registered on themselves as directives anymore. Angular 4.x.x Plunker example original That supported. You just need to add the component to directives: [] in its @Component() decorator. Because the decorator comes before the class and classes … Read more