Angular's Templates Don't Work the Way You Think They Do
This title could be clearer and more informative.Try out Clickbait Shieldfor free (5 uses left this month).
Angular templates are commonly misunderstood. Rather than the compiler creating and injecting a host element, Angular actually injects the compiled template as children of an existing non-standard HTML element (the selector). The host element cannot be removed because it was never created by Angular — it's just a
Sort: