Many times we come across templates in Angular where we have to recursively add UI components. For example, while creating a table of contents, there can be 0 or many sub-sections, as shown in the below picture:
To achieve such functionality, there are multiple ways in Angular. In this blog, we will discuss ng-template, which is the simplest of all.
#angular #javascript #web-development #developer #programming