Federico Nardone Aggiutorio
asked on
Angular component tag
Hi all,
in the official ng-book (p. 73) I read that is possible indicate an angular 6 component tag in 2 different ways. Example from the official manual:
1) <inventory-app-root></inve ntory-app- root>
2) <div inventory-app-root></div>
but in my Angular application only the 1st way works.
<app-test-component></app- test-compo nent>
(work)
<div app-test-component></div>
(doesn't work)
Why?
Thank you very much
in the official ng-book (p. 73) I read that is possible indicate an angular 6 component tag in 2 different ways. Example from the official manual:
1) <inventory-app-root></inve
2) <div inventory-app-root></div>
but in my Angular application only the 1st way works.
<app-test-component></app-
(work)
<div app-test-component></div>
(doesn't work)
Why?
Thank you very much
This question needs an answer!
Become an EE member today
7 DAY FREE TRIALMembers can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.