Home > Blockchain >  How to reuse the same angular component inside the component itself?
How to reuse the same angular component inside the component itself?

Time:09-29

I have the following parent and child component, and I am passing in data from parent component to child component. I am displaying parentData.name in child component if parentData.isFolder===false, and trying to reuse the child component if parentData.isFolder===true. I would like to use the same child component multiple times until I have no data with with parentData.isFolder===true.

I attempted the following and getting

Error: Maximum call stack size exceeded

enter image description here

  • Related