Angular2 recursive components

Viewed 5189

I am trying to deploy recursive components as discussed in these posts and plnkr:

How do I inject a parent component into a child component?

> `http://plnkr.co/edit/l7jsV0k7DbGJGXPFlSPr?p=preview`

Angular2 Recursive Templates in javascript

However, the solutions provided only deal with the component objects themselves and do not solve the issue of the HTML tags that the components are supposed to instantiate with.

How can the child component use the <parent> ... </parent> html tag inside of its template?

I would be very grateful for help and perhaps a plunkr/fiddle that you may be able to offer.

1 Answers
Related