Hi Santosh, yes, actually it does work like any regular component. We have to realize that what we did here is just point to Angular which template HTML to use. That is all the Angular compiler wants to know. In other words, you could in theory point templateUrl of ComponentA to, say, component-z.html existing somewhere totally different, and as long as Angular can compile it and the app works, no issues.

Krishnan Mudaliar
Krishnan Mudaliar

Written by Krishnan Mudaliar

Loves the web • DIY • DRY • ASP.NET • JavaScript • Angular • NodeJS (i/bitsy) • Believer of great UX

No responses yet